Skip to content

Commit e3516ee

Browse files
authored
fix(diagnostics): Update lsp diagnostics signs when opening/closing folders. (#325)
1 parent c995d65 commit e3516ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/nvim-tree/lib.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ function M.unroll_dir(node)
121121
git.update_gitignore_map_sync()
122122
populate(node.entries, node.link_to or node.absolute_path, node)
123123

124-
if vim.g.nvim_tree_lsp_diagnostics == 1 then
125-
diagnostics.update()
126-
end
127-
128124
renderer.draw(M.Tree, true)
129125
end
126+
127+
if vim.g.nvim_tree_lsp_diagnostics == 1 then
128+
diagnostics.update()
129+
end
130130
end
131131

132132
local function refresh_git(node, update_gitignore)

0 commit comments

Comments
 (0)