fix: lsp diagnostics user autocmd setup

This commit is contained in:
kiyan
2021-10-10 17:02:34 +02:00
parent 53856f5d3a
commit fda5b82bdf
2 changed files with 8 additions and 3 deletions

View File

@@ -134,6 +134,14 @@ function M.setup(opts)
for lhs, rhs in pairs(links) do
vim.cmd("hi def link "..lhs.." "..rhs)
end
if M.enable then
if has_06 then
vim.cmd "au User DiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
else
vim.cmd "au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
end
end
end
return M