Files
neovim/runtime/doc/news.txt
Yi Ming 57797ed7d4 feat(lsp): respect 'switchbuf' for jump commands, drop reuse_win #38510
Problem:
LSP jump operations such as `buf.definition`/`buf.type_definition` do
not follow the 'switchbuf' option. Instead their behavior is controlled
by `vim.lsp.LocationOpts.reuse_win`. When `reuse_win=true`, the effect
is very similar to `set switchbuf=useopen`.

Note that functions like `buf.definition` open the quickfix
window when there are multiple results, and jumping between quickfix
entries already follows 'switchbuf', so unifying the behavior is more
intuitive.

Solution:
Follow the 'switchbuf' option and drop `reuse_win`.

We can achieve this behavior by using :cfirst when the quickfix list has
only one item, rather than customizing the jump logic as before.
2026-03-30 10:54:55 -04:00

158 lines
2.4 KiB
Plaintext

*news.txt* Nvim
NVIM REFERENCE MANUAL
Notable changes since Nvim 0.12 *news*
For changes in the previous release, see |news-0.12|.
Type |gO| to see the table of contents.
==============================================================================
BREAKING CHANGES *news-breaking*
These changes may require adaptations in your config or plugins.
API
• todo
DIAGNOSTICS
• todo
EDITOR
• todo
EVENTS
• todo
LSP
• todo
LUA
• todo
OPTIONS
• todo
PLUGINS
• todo
TREESITTER
• todo
==============================================================================
NEW FEATURES *news-features*
The following new features were added.
API
• |vim.lsp.buf.declaration()|, |vim.lsp.buf.definition()|, |vim.lsp.buf.definition()|,
and |vim.lsp.buf.implementation()| now follows 'switchbuf'.
BUILD
• todo
DEFAULTS
• todo
DIAGNOSTICS
• todo
EDITOR
• todo
EVENTS
• todo
HIGHLIGHTS
• todo
LSP
• LSP capabilities:
• `textDocument/foo` …
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#textDocument_codeLens
• `textDocument/bar` …
https://microsoft.github.io/language-server-protocol/specification/#textDocument_colorPresentation
• todo
LUA
• todo
OPTIONS
• todo
PERFORMANCE
• todo
PLUGINS
• todo
STARTUP
• todo
TERMINAL
• todo
TREESITTER
• todo
TUI
• todo
UI
• todo
VIMSCRIPT
• todo
==============================================================================
CHANGED FEATURES *news-changed*
These existing features changed their behavior.
• todo
==============================================================================
REMOVED FEATURES *news-removed*
These deprecated features were removed.
• |vim.lsp.buf.declaration()|, |vim.lsp.buf.definition()|, |vim.lsp.buf.definition()|,
and |vim.lsp.buf.implementation()| no longer accept the `reuse_win` option.
==============================================================================
DEPRECATIONS *news-deprecations*
See |deprecated-0.13|.
vim:tw=78:ts=8:sw=2:et:ft=help:norl: