Skip to content

Commit d417292

Browse files
authored
fix: lsp_diagnostics switch reversed. (#635)
1 parent a864b80 commit d417292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ local function setup_autocommands(opts)
374374
au SessionLoadPost * lua require'nvim-tree.view'._wipe_rogue_buffer()
375375
]]
376376

377-
if vim.g.nvim_tree_lsp_diagnostics ~= 1 then
377+
if vim.g.nvim_tree_lsp_diagnostics == 1 then
378378
vim.cmd "au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
379379
end
380380
if opts.auto_close then

0 commit comments

Comments
 (0)