Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
vim.diagnostic.get_next_pos()
Use the "lnum" and "col" fields from the return value of
vim.diagnostic.get_next() instead.
vim.diagnostic.get_prev_pos()
Use the "lnum" and "col" fields from the return value of
vim.diagnostic.get_prev() instead.
nvim_buf_get_option()
Use nvim_get_option_value() instead.
nvim_buf_set_option()
Use nvim_set_option_value() instead.
nvim_call_atomic()
Use nvim_exec_lua() instead.
nvim_get_option()
Use nvim_get_option_value() instead.
nvim_set_option()
Use nvim_set_option_value() instead.
nvim_win_get_option()
Use nvim_get_option_value() instead.
nvim_win_set_option()
Use nvim_set_option_value() instead.
vim.diagnostic.enable(buf:number, namespace:number)
vim.lsp.util.get_progress_messages()
Use vim.lsp.status() instead.
vim.lsp.get_active_clients()
Use vim.lsp.get_clients() instead.
vim.lsp.for_each_buffer_client()
Use vim.lsp.get_clients() instead.
vim.lsp.util.lookup_section()
Use vim.tbl_get() instead:
local keys = vim.split(section, '.', { plain = true }) local vim.tbl_get(table, unpack(keys))LUA
vim.tbl_flatten()
Use Iter:flatten() instead.
vim.tbl_islist()
Use vim.islist() instead.
LanguageTree:for_each_child()
Use LanguageTree:children() (non-recursive) instead.
nvim_buf_clear_highlight()
Use nvim_buf_clear_namespace() instead.
nvim_buf_set_virtual_text()
Use nvim_buf_set_extmark() instead.
nvim_command_output()
Use nvim_exec2() instead.
nvim_execute_lua()
Use nvim_exec_lua() instead.
nvim_get_option_info()
Use nvim_get_option_info2() instead.
call jobstart(['foo'], { 'env': { 'NVIM_LISTEN_ADDRESS': v:servername } })
EncodingChanged
Never fired; 'encoding' is always "utf-8".
FileEncoding
Never fired; equivalent to EncodingChanged.
GUIFailed
Never fired.
buffer_exists()
Obsolete name for bufexists().
buffer_name()
Obsolete name for bufname().
buffer_number()
Obsolete name for bufnr().
file_readable()
Obsolete name for filereadable().
highlight_exists()
Obsolete name for hlexists().
highlightID()
Obsolete name for hlID().
inputdialog()
Use input() instead.
jobclose()
Obsolete name for chanclose()
jobsend()
Obsolete name for chansend()
last_buffer_nr()
Obsolete name for bufnr("$").
hl-VertSplit
Use hl-WinSeparator instead.
vim.lsp.diagnostic.clear()
Use vim.diagnostic.hide() instead.
vim.lsp.diagnostic.disable()
Use vim.diagnostic.enable() instead.
vim.lsp.diagnostic.display()
Use vim.diagnostic.show() instead.
vim.lsp.diagnostic.get_all()
Use vim.diagnostic.get() instead.
vim.lsp.diagnostic.get_count()
Use vim.diagnostic.count() instead.
vim.lsp.diagnostic.get_virtual_text_chunks_for_line()
No replacement. Use
options provided by vim.diagnostic.config() to customize virtual text.
vim.lsp.diagnostic.redraw()
Use vim.diagnostic.show() instead.
vim.lsp.diagnostic.save()
Use vim.diagnostic.set() instead.
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:
vim.lsp.util.set_qflist()
Use setqflist() instead.
vim.lsp.util.set_loclist()
Use setloclist() instead.
'langnoremap'
Deprecated alias to 'nolangremap'.
'viminfofile'
Deprecated alias to 'shadafile' option.
'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":
ui-wildmenu
Use ui-cmdline with ui-popupmenu instead. Enabled
by the ext_wildmenu
ui-option. Emits these events:
["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.
b:terminal_job_pid
Use jobpid(&channel)
instead.
b:terminal_job_id
Use &channel
instead. To access in non-current buffer:
vim.bo[bufnr].channel
getbufvar(bufnr, '&channel')