File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -383,9 +383,6 @@ local function setup_autocommands(opts)
383
383
au User FugitiveChanged,NeogitStatusRefreshed lua require'nvim-tree'.refresh()
384
384
]]
385
385
386
- if opts .lsp_diagnostics then
387
- vim .cmd " au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
388
- end
389
386
if opts .auto_close then
390
387
vim .cmd " au WinClosed * lua require'nvim-tree'.on_leave()"
391
388
end
Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ function M.setup(opts)
134
134
for lhs , rhs in pairs (links ) do
135
135
vim .cmd (" hi def link " .. lhs .. " " .. rhs )
136
136
end
137
+
138
+ if M .enable then
139
+ if has_06 then
140
+ vim .cmd " au User DiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
141
+ else
142
+ vim .cmd " au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
143
+ end
144
+ end
137
145
end
138
146
139
147
return M
You can’t perform that action at this time.
0 commit comments