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,11 +121,11 @@ function M.unroll_dir(node)
git.update_gitignore_map_sync() git.update_gitignore_map_sync()
populate(node.entries, node.link_to or node.absolute_path, node) populate(node.entries, node.link_to or node.absolute_path, node)
if vim.g.nvim_tree_lsp_diagnostics == 1 then renderer.draw(M.Tree, true)
diagnostics.update()
end end
renderer.draw(M.Tree, true) if vim.g.nvim_tree_lsp_diagnostics == 1 then
diagnostics.update()
end end
end end