chore: lsp diagnostics setup

This commit is contained in:
kiyan
2021-09-26 11:56:44 +02:00
parent 0ca87178b6
commit 1edebb7894
5 changed files with 20 additions and 14 deletions

View File

@@ -146,9 +146,7 @@ function M.unroll_dir(node)
renderer.draw(M.Tree, true)
end
if vim.g.nvim_tree_lsp_diagnostics == 1 then
diagnostics.update()
end
diagnostics.update()
end
local function refresh_git(node)
@@ -190,9 +188,7 @@ function M.refresh_tree(disable_clock)
end)
end
if vim.g.nvim_tree_lsp_diagnostics == 1 then
vim.schedule(diagnostics.update)
end
vim.schedule(diagnostics.update)
if view.win_open() then
renderer.draw(M.Tree, true)