File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
plugin/vim/quick-lint-js.vim/doc Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -205,17 +205,17 @@ module directly: >
205205 nvim_lsp.quick_lint_js.setup {}
206206
207207 quick-lint-js is fast. To feel the speed, you might want to lint while in
208- insert mode. Edit the "handlers " key in the setup function call to make
208+ insert mode. Edit the "on_attach " key in the setup function call to make
209209JavaScript linting as fast as possible: >
210210
211211 require('lspconfig/quick_lint_js').setup {
212- handlers = {
213- ['textDocument/publishDiagnostics'] = vim.lsp.with(
214- vim.lsp. diagnostic.on_publish_diagnostics, {
215- update_in_insert = true
216- }
217- )
218- }
212+ on_attach = function(client, bufnr)
213+ if client.name == "quick-lint-js" then
214+ vim.diagnostic.config( {
215+ update_in_insert = true,
216+ }, client.id)
217+ end
218+ end,
219219 }
220220
221221 The `setup` function can take the following configuration options:
You can’t perform that action at this time.
0 commit comments