Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
:cscope
:lcscope
:scscope
:cstag
cscopepathcomp
cscopeprg
cscopequickfix
cscoperelative
cscopetag
cscopetagorder
cscopeverbose
cscope_connection()
:hardcopy
printdevice
printencoding
printexpr
printfont
printheader
printmbcharset
string
, as opposed to string|string[]|nil
.
concat
option has been removed as it was not consistently applied.
nil
.
vim.loader.enable()
:help $NVIM_APPNAME
.
mouse
option to open a floating win
relative to the mouse. Note that the mouse doesn't update frequently without
setting vim.o.mousemoveevent = true
vim.g.editorconfig = false
nvim -l foo.lua --arg1 --arg2
echo "print(42)" | nvim -l -
semanticTokensProvider
from the LSP client's {server_capabilities}
in the
LspAttach
callback.
willSave
and willSaveWaitUntil
capabilities to the
LSP client. willSaveWaitUntil
allows a server to modify a document before it
gets saved. Example use-cases by language servers include removing unused
imports, or formatting the file.
help
files now supports highlighted
code examples. To enable, create a .config/nvim/ftplugin/help.lua
with
the contentsvim.treesitter.start()
help
parser is also work in
progress and not guaranteed to correctly highlight every help file in the
wild.
suffix
option which, by default, renders LSP error codes.
Similarly, the virtual_text
configuration in vim.diagnostic.config() now
has a suffix
option which does nothing by default.
opts
argument with a depth field to allow
recursively searching a directory tree.
linematch
option to enable a second-stage diff
on individual hunks to provide much more accurate diffs. This option is also
available to vim.diff()
LUA_GEN_PRG
build parameter has been introduced to
allow for a workaround for some remaining reproducibility problems.
metadata
option for
writing custom directives using vim.treesitter.query.add_directive().
vim.treesitter.language.require_language
.
require'bit'
is now always available lua-bit
{include_bytes}
argument.
workspace/didChangeWatchedFiles
capability
to the LSP client to notify servers of file changes on disk. The feature is
disabled by default and can be enabled by setting the
workspace.didChangeWatchedFiles.dynamicRegistration=true
capability.
filetype
option so it can return the
default option for a specific filetype.
win_viewport
UI event now contains information about virtual lines,
meaning that smooth scrolling can now be implemented more consistenlty.
:= {expr}
syntax can be used to evaluate a lua expression, as
a shorter form of :lua ={expr}
. :=
and :[range]=
without argument
are unchanged. However :=#
and similar variants using ex-flags
are no longer supported.
filetype.vim
is removed in favor of lua-filetype
(Note that filetype logic and tests still align with Vim, so additions or
changes need to be contributed there first.)
See https://github.com/neovim/neovim/pull/20674.
on_changedtree
callbacks instead.
require'health'
was removed. Use vim.health instead.
vim.treesitter.language.require_language()
vim.api.nvim_get_hl_by_name()
, vim.api.nvim_get_hl_by_id()
were deprecated, use nvim_get_hl() instead.
vim.treesitter.inspect_language()
-> vim.treesitter.language.inspect()
vim.treesitter.get_query_files()
-> vim.treesitter.query.get_files()
vim.treesitter.set_query()
-> vim.treesitter.query.set()
vim.treesitter.query.set_query()
-> vim.treesitter.query.set()
vim.treesitter.get_query()
-> vim.treesitter.query.get()
vim.treesitter.query.get_query()
-> vim.treesitter.query.get()
vim.treesitter.parse_query()
-> vim.treesitter.query.parse()
vim.treesitter.query.parse_query()
-> vim.treesitter.query.parse()
vim.treesitter.add_predicate()
-> vim.treesitter.query.add_predicate()
vim.treesitter.add_directive()
-> vim.treesitter.query.add_directive()
vim.treesitter.list_predicates()
-> vim.treesitter.query.list_predicates()
vim.treesitter.list_directives()
-> vim.treesitter.query.list_directives()
vim.treesitter.query.get_range()
-> vim.treesitter.get_range()
vim.treesitter.query.get_node_text()
-> vim.treesitter.get_node_text()