mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
efa45832ea
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.
177 lines
3.8 KiB
Plaintext
177 lines
3.8 KiB
Plaintext
*news.txt* Nvim
|
|
|
|
|
|
NVIM REFERENCE MANUAL
|
|
|
|
|
|
Notable changes since Nvim 0.10 *news*
|
|
|
|
For changes in the previous release, see |news-0.10|.
|
|
|
|
Type |gO| to see the table of contents.
|
|
|
|
==============================================================================
|
|
BREAKING CHANGES IN HEAD *news-breaking-dev*
|
|
|
|
====== Remove this section before release. ======
|
|
|
|
The following changes to UNRELEASED features were made during the development
|
|
cycle (Nvim HEAD, the "master" branch).
|
|
|
|
==============================================================================
|
|
BREAKING CHANGES *news-breaking*
|
|
|
|
These changes may require adaptations in your config or plugins.
|
|
|
|
API
|
|
|
|
• `vim.rpcnotify(0)` and `rpcnotify(0)` broadcast to ALL channels. Previously
|
|
they would "multicast" only to subscribed channels (controlled by
|
|
`nvim_subscribe()`). Plugins and clients that want "multicast" behavior must
|
|
now maintain their own list of channels.
|
|
• In the future, |vim.rpcnotify()| may accept a list of channels, if there
|
|
is demand for this use-case.
|
|
|
|
DEFAULTS
|
|
|
|
• |]d-default| and |[d-default| accept a count.
|
|
• |[D-default| and |]D-default| jump to the first and last diagnostic in the
|
|
current buffer, respectively.
|
|
|
|
DIAGNOSTICS
|
|
|
|
• |vim.diagnostic.config()| accepts a "jump" table to specify defaults for
|
|
|vim.diagnostic.jump()|.
|
|
|
|
EDITOR
|
|
|
|
• The order in which signs are placed was changed. Higher priority signs will
|
|
now appear left of lower priority signs.
|
|
|
|
EVENTS
|
|
|
|
• TODO
|
|
|
|
LSP
|
|
|
|
• TODO
|
|
|
|
LUA
|
|
|
|
• TODO
|
|
|
|
OPTIONS
|
|
|
|
• TODO
|
|
|
|
PLUGINS
|
|
|
|
• TODO
|
|
|
|
TREESITTER
|
|
|
|
• TODO
|
|
|
|
TUI
|
|
|
|
• TODO
|
|
|
|
==============================================================================
|
|
NEW FEATURES *news-features*
|
|
|
|
The following new features were added.
|
|
|
|
API
|
|
|
|
• TODO
|
|
|
|
DEFAULTS
|
|
|
|
• Keymaps:
|
|
- |grn| in Normal mode maps to |vim.lsp.buf.rename()|
|
|
- |grr| in Normal mode maps to |vim.lsp.buf.references()|
|
|
- |gra| in Normal and Visual mode maps to |vim.lsp.buf.code_action()|
|
|
- CTRL-S in Insert mode maps to |vim.lsp.buf.signature_help()|
|
|
|
|
• Snippet:
|
|
- `<Tab>` in Insert and Select mode maps to |vim.snippet.jump({ direction = 1 })|
|
|
when a snippet is active and jumpable forwards.
|
|
- `<S-Tab>` in Insert and Select mode maps to |vim.snippet.jump({ direction = -1 })|
|
|
when a snippet is active and jumpable backwards.
|
|
|
|
EDITOR
|
|
|
|
* On Windows, filename arguments on the command-line prefixed with "~\" or
|
|
"~/" are now expanded to the user's profile directory, not a relative path
|
|
to a literal "~" directory.
|
|
|
|
EVENTS
|
|
|
|
• TODO
|
|
|
|
LSP
|
|
|
|
• Completion side effects (including snippet expansion, execution of commands
|
|
and application of additional text edits) is now built-in.
|
|
|
|
LUA
|
|
|
|
• TODO
|
|
|
|
OPTIONS
|
|
|
|
• TODO
|
|
|
|
PERFORMANCE
|
|
|
|
• TODO
|
|
|
|
PLUGINS
|
|
|
|
• TODO
|
|
|
|
STARTUP
|
|
|
|
• TODO
|
|
|
|
TERMINAL
|
|
|
|
• TODO
|
|
|
|
TREESITTER
|
|
|
|
• TODO
|
|
|
|
TUI
|
|
|
|
• TODO
|
|
|
|
UI
|
|
|
|
• TODO
|
|
|
|
|
|
• |CompleteDone| now sets the `reason` key in `v:event` which specifies the reason
|
|
for completion being done.
|
|
|
|
==============================================================================
|
|
CHANGED FEATURES *news-changed*
|
|
|
|
These existing features changed their behavior.
|
|
|
|
• N/A
|
|
|
|
==============================================================================
|
|
REMOVED FEATURES *news-removed*
|
|
|
|
These deprecated features were removed.
|
|
|
|
• N/A
|
|
|
|
==============================================================================
|
|
DEPRECATIONS *news-deprecations*
|
|
|
|
See |deprecated-0.11|.
|
|
|
|
vim:tw=78:ts=8:sw=2:et:ft=help:norl:
|