fix(diagnostics): Update lsp diagnostics signs when opening/closing folders. (#325)

This commit is contained in:
Sindre T. Strøm
2021-04-20 18:38:28 +02:00
committed by GitHub
parent c995d65b7d
commit e3516eeb6e

View File

@@ -121,12 +121,12 @@ function M.unroll_dir(node)
git.update_gitignore_map_sync()
populate(node.entries, node.link_to or node.absolute_path, node)
if vim.g.nvim_tree_lsp_diagnostics == 1 then
diagnostics.update()
end
renderer.draw(M.Tree, true)
end
if vim.g.nvim_tree_lsp_diagnostics == 1 then
diagnostics.update()
end
end
local function refresh_git(node, update_gitignore)