fix: lsp_diagnostics switch reversed. (#635)

This commit is contained in:
WayJam So
2021-09-26 17:31:26 +08:00
committed by GitHub
parent a864b80baf
commit d4172928e2

View File

@@ -374,7 +374,7 @@ local function setup_autocommands(opts)
au SessionLoadPost * lua require'nvim-tree.view'._wipe_rogue_buffer() au SessionLoadPost * lua require'nvim-tree.view'._wipe_rogue_buffer()
]] ]]
if vim.g.nvim_tree_lsp_diagnostics ~= 1 then if vim.g.nvim_tree_lsp_diagnostics == 1 then
vim.cmd "au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()" vim.cmd "au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
end end
if opts.auto_close then if opts.auto_close then