neovim/runtime
Gregory Anders efa45832ea
feat: add "jump" options to vim.diagnostic.config() (#29067)
Problem: There is no easy way to configure the behavior of the default
diagnostic "jump" mappings. For example, some users way want to show the
floating window, and some may not (likewise, some way want to only move
between warnings/errors, or disable the "wrap" parameter).

Solution: Add a "jump" table to vim.diagnostic.config() that sets
default values for vim.diagnostic.jump().

Alternatives: Users can override the default mappings to use the exact
options to vim.diagnostic.jump() that they want, but this has a couple
issues:

  - While the default mappings are not complicated, they are also not
    trivial, so overriding them requires users to understand
    implementation details (specifically things like setting "count"
    properly).
  - If plugins want to change the default mappings, or configure the
    behavior in any way (e.g. floating window display), it becomes even
    harder for users to tweak specific behavior.

vim.diagnostic.config() already works quite well as the "entry point"
for tuning knobs with diagnostic UI elements, so this fits in nicely and
composes well with existing mental models and idioms.
2024-05-28 14:54:50 -05:00
..
autoload vim-patch:9.1.0442: hare runtime files outdated (#29011) 2024-05-26 07:11:50 +08:00
colors fix(treesitter): document more standard highlight groups 2024-03-19 09:41:16 +01:00
compiler vim-patch:9.1.0442: hare runtime files outdated (#29011) 2024-05-26 07:11:50 +08:00
doc feat: add "jump" options to vim.diagnostic.config() (#29067) 2024-05-28 14:54:50 -05:00
ftplugin fix(runtime): source c ftplugin properly for cpp on Windows (#29053) 2024-05-28 06:39:07 +08:00
indent vim-patch:76174e7: runtime(asm): remove the indent plugin since it has too many issues 2024-05-27 06:59:01 +02:00
keymap vim-patch:caee7956a21a 2023-11-05 21:56:56 +01:00
lua feat: add "jump" options to vim.diagnostic.config() (#29067) 2024-05-28 14:54:50 -05:00
macros vim-patch:79230f027a25 2024-02-16 08:57:45 +01:00
pack/dist/opt vim-patch:62ccaa6: runtime(termdebug): check for gdb file/dir before using as buffer name (#28908) 2024-05-22 08:41:07 +08:00
plugin vim-patch:94043780196c (#28831) 2024-05-18 15:53:26 +08:00
queries build(deps): bump tree-sitter-query to v0.4.0 2024-05-26 12:38:20 +02:00
spell
syntax vim-patch:0b74eec: runtime(stylus): remove remaining css code (vim/vim#14866) 2024-05-28 14:40:26 +08:00
tools
tutor docs: fix typos (#27868) 2024-03-28 09:32:32 +08:00
CMakeLists.txt build: various fixes 2024-02-01 12:06:55 +01:00
delmenu.vim
filetype.lua fix(filetype): use unexpanded file name (#27931) 2024-03-23 11:46:23 +08:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00
menu.vim
mswin.vim vim-patch:45da32964d6e 2024-03-14 15:04:31 +08:00
neovim.ico
nvim.appdata.xml NVIM v0.10.0 2024-05-16 14:34:32 +02:00
nvim.desktop
nvim.png
optwin.vim vim-patch:9.1.0147: Cannot keep a buffer focused in a window 2024-03-11 11:38:13 +08:00
synmenu.vim vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00