Skip to content

Commit 4be0a36

Browse files
wayjamjim-fx
authored andcommitted
fix: lsp_diagnostics switch reversed. (nvim-tree#635)
1 parent 109122b commit 4be0a36

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
@@ -380,7 +380,7 @@ local function setup_autocommands(opts)
380380
au SessionLoadPost * lua require'nvim-tree.view'._wipe_rogue_buffer()
381381
]]
382382

383-
if vim.g.nvim_tree_lsp_diagnostics ~= 1 then
383+
if vim.g.nvim_tree_lsp_diagnostics == 1 then
384384
vim.cmd "au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
385385
end
386386
if opts.auto_close then

0 commit comments

Comments
 (0)