Deprecated
Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
Nvim
The items listed below are deprecated: they will be removed in the future.
They should not be used in new scripts, and old scripts should be updated.
Deprecated features
API
nvim_subscribe() Plugins must maintain their own "multicast" channels list.
nvim_unsubscribe() Plugins must maintain their own "multicast" channels list.
DIAGNOSTICS
The "win_id" parameter used by various functions is deprecated in favor of
"winid"
winid
LSP
vim.lsp.buf_request_all The error
key has been renamed to err
inside
the result parameter of the handler.
vim.lsp.with() Pass configuration to equivalent
functions in
vim.lsp.buf.*
.
vim.lsp.handlers Does not support client-to-server response handlers. Only
supports server-to-client requests/notification handlers.
DIAGNOSTICS
vim.diagnostic functions:
Legacy signature: vim.diagnostic.enable(buf:number, namespace:number)
OPTIONS
The "term_background" UI option
ui-ext-options is deprecated and no longer
populated. Background color detection is now performed in Lua by the Nvim
core, not the TUI.
TREESITTER
The following top level Treesitter functions have been moved:
DEPRECATED IN 0.8 OR EARLIER
ENVIRONMENT VARIABLES
Deprecated way to:
detect a parent Nvim (use
$NVIM instead)
Ignored if --listen is given.
Unset by
terminal and
jobstart() unless explicitly given by the "env"
option. Example:
call jobstart(['foo'], { 'env': { 'NVIM_LISTEN_ADDRESS': v:servername } })
LSP FUNCTIONS
vim.lsp.buf.server_ready()
Use
LspAttach instead, depending on your use-case. "Server ready" is not
part of the LSP spec, so the Nvim LSP client cannot meaningfully implement
it. "Ready" is ambiguous because:
Language servers may finish analyzing the workspace, but edits can always
re-trigger analysis/builds.
Language servers can serve some requests even while processing changes.
OPTIONS
'viewoptions' Flags "unix", "slash" are ignored and always enabled.
'paste' 'nopaste' Just Paste It.™ The
'paste' option is obsolete:
paste is handled automatically when you paste text
using your terminal's or GUI's paste feature
(
CTRL-SHIFT-v
, CMD-v (macOS), middle-click, …).
Enables "paste mode":
Disables mappings in Insert, Cmdline mode.
Disables abbreviations.
Disables the effect of these options:
UI EXTENSIONS
["wildmenu_show", items]
["wildmenu_select", selected]
["wildmenu_hide"]
term_background Unused. The terminal background color is now detected
by the Nvim core directly instead of the TUI.
VARIABLES
Lua: vim.bo[bufnr].channel
Vimscript: getbufvar(bufnr, '&channel')
VIMSCRIPT
rpcstop() Use
jobstop() instead to stop any job, or
chanclose(id, "rpc")
to close RPC communication
without stopping the job. Use chanclose(id) to close
any socket.