How do I automatically apply the preferred LSP code action without a selection prompt in Neovim?
vim.lsp.buf.code_action({ apply = true, filter = function(a) return a.isPreferred end })
When an LSP server marks a code action as isPreferred (e.
vim.lsp.buf.code_action({ apply = true, filter = function(a) return a.isPreferred end })
When an LSP server marks a code action as isPreferred (e.
vim.api.nvim_create_namespace('my_plugin')
Neovim's extmark system (for highlights, virtual text, and diagnostics) uses namespaces to group related marks.
vim.lsp.config('*', { ... })
Neovim 0.
vim.system()
vim.
vim.ui.select()
Neovim exposes vim.
stevearc/oil.nvim
oil.
folke/snacks.nvim
snacks.
flash.nvim
flash.
saghen/blink.cmp
blink.
vim.diagnostic.jump({count=1})
Neovim 0.
vim.lsp.enable()
Neovim 0.
vim.diagnostic.config({virtual_lines = true})
Neovim 0.
vim.lsp.config()
Neovim 0.
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.
vim.lsp.completion.enable()
Neovim 0.
vim.snippet.expand()
Neovim 0.