Skip to content

Commit

Permalink
lsp: delay update diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarnajjar committed Feb 22, 2021
1 parent a7b7261 commit 81b2b02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@ local servers = { "angularls", "cssls", "gopls", "pyls", "rls", "yamlls", "tsser
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup { on_attach = require'completion'.on_attach }
end

vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
-- delay update diagnostics
update_in_insert = false,
}
)
EOF
"}}}
" => completion-nvim -------------------- {{{3
Expand Down

0 comments on commit 81b2b02

Please sign in to comment.