How do I use Neovim 0.11's unified diagnostic jump API to navigate to the next or previous diagnostic?
vim.diagnostic.jump({count=1})
Neovim 0.
Search Vim Tricks
Searching...vim.diagnostic.jump({count=1})
Neovim 0.
<C-r><C-o>
When you paste a register in insert mode with {reg}, Vim inserts the text as if you had typed it — which means auto-indent, abbreviation expansion, and other
registers #registers #insert-mode #paste #autoindent #editing
vim.lsp.status()
vim.
vim.ui.open()
vim.
vim.diagnostic.count()
vim.
vim.api.nvim_create_autocmd('LspAttach', ...)
Setting your LSP keymaps inside a LspAttach autocmd ensures they are only active in buffers where a language server is actually running.
vim.lsp.enable()
Neovim 0.
:lua = {expression}
In Neovim, :lua = expr is a shorthand that evaluates a Lua expression and pretty-prints the result using vim.
vim.lsp.foldexpr()
Neovim 0.
vim.treesitter.foldexpr()
Neovim's built-in Treesitter integration includes vim.
vim.diagnostic.config({virtual_lines = true})
Neovim 0.
vim.lsp.config()
Neovim 0.
:checkhealth {module}
:checkhealth {module} runs the health check only for the specified module, making it much faster than the full :checkhealth which interrogates every registered
command-line #neovim #diagnostics #debugging #plugins #health
vim.fs.root()
vim.
vim.filetype.add()
vim.
vim.lsp.enable('server-name')
vim.
vim.lsp.config('server', { cmd = {...}, root_markers = {...}, filetypes = {...} })
Neovim 0.
vim.diagnostic.jump()
Neovim 0.
vim.ui.select() and vim.ui.input()
Neovim provides vim.
vim.uv.new_timer()
Neovim exposes vim.