-
-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
The neovim configuration docs recommend vim.lsp.with(), deprecated in neovim 0.11.
quick-lint-js is fast. To feel the speed, you might want to lint while in
insert mode. Edit the "handlers" key in the setup function call to make
JavaScript linting as fast as possible: >
require('lspconfig/quick_lint_js').setup {
handlers = {
['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
update_in_insert = true
}
)
}
}
Neovim now recommends:
vim.lsp.with() Pass configuration to equivalent functions in vim.lsp.buf.*.
Metadata
Metadata
Assignees
Labels
No labels