feat: help filetype will not ignore to refresh

This commit is contained in:
eph
2024-12-26 19:00:17 +08:00
parent ffde729b63
commit 7fefc760ba

View File

@@ -340,7 +340,7 @@ function Sidebar:__refresh()
end
local ft = vim.api.nvim_buf_get_option(buf, 'ft')
local listed = vim.api.nvim_buf_get_option(buf, 'buflisted')
if ft == 'OutlineHelp' or not listed then
if ft == 'OutlineHelp' or not (listed or ft == 'help') then
return
end
self.provider, self.provider_info = providers.find_provider()