Files
neovim/runtime/doc/news.txt
Jordan 3a4a66017b feat(api): rename buffer to buf #35330
Problem:
`:help dev-name-common` states that "buf" should be used instead of
"buffer" but there are cases where buffer is mentioned in the lua API.

Solution:
- Rename occurrences of "buffer" to "buf" for consistency with the
  documentation.
- Support (but deprecate) "buffer" for backwards compatibility.

Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2026-04-08 20:34:47 -04:00

171 lines
3.3 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
• |nvim_create_autocmd()|, |nvim_exec_autocmds()| and |nvim_clear_autocmds()|
no longer treat an empty non-nil pattern as nil.
• |nvim_clear_autocmds()| no longer treats an empty array event as nil.
DIAGNOSTICS
• todo
EDITOR
• todo
EVENTS
• todo
LSP
• todo
LUA
• Added `__eq` metamethod to |vim.VersionRange|.
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
• |vim.filetype.inspect()| returns a copy of the internal tables used for
filetype detection.
• Added `__eq` metamethod to |vim.VersionRange|. 2 distinct but representing
the same range instances now compare equal.
OPTIONS
• todo
PERFORMANCE
• todo
PLUGINS
• todo
STARTUP
• todo
TERMINAL
• todo
TREESITTER
• todo
TUI
• The TUI will re-query the terminal's background color when resuming from
a suspended state, and Nvim will update 'background' accordingly.
UI
• todo
VIMSCRIPT
• todo
==============================================================================
CHANGED FEATURES *news-changed*
These existing features changed their behavior.
• |:Open| with no arguments uses the current file.
• The "buffer" key was renamed to "buf" in these functions (but the old name
"buffer" is still accepted, for backwards compatibility):
• |nvim_clear_autocmds()|
• |nvim_create_autocmd()|
• |nvim_exec_autocmds()|
• |nvim_get_autocmds()|
==============================================================================
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: