fix: remove diagnostics in help view

fixes #1088
This commit is contained in:
kiyan
2022-03-19 12:32:11 +01:00
parent a2fc2979f3
commit 3cf67c5849
2 changed files with 23 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ local view = require "nvim-tree.view"
local filters = require "nvim-tree.explorer.filters"
local renderer = require "nvim-tree.renderer"
local reloaders = require "nvim-tree.actions.reloaders"
local diagnostics = require "nvim-tree.diagnostics"
local M = {}
@@ -22,7 +23,12 @@ end
function M.help()
view.toggle_help()
return renderer.draw()
renderer.draw()
if view.is_help_ui() then
diagnostics.clear()
else
diagnostics.update()
end
end
return M