refactor(#2826): singleton View class, WIP

This commit is contained in:
Alexander Courtis
2025-04-20 14:28:44 +10:00
parent 0a04e435b1
commit f098195667
9 changed files with 70 additions and 71 deletions

View File

@@ -182,7 +182,7 @@ function M.update_coc()
end
log.profile_end(profile)
local bufnr = view.get_bufnr()
local bufnr = view.View:get_bufnr()
local should_draw = bufnr and vim.api.nvim_buf_is_valid(bufnr) and vim.api.nvim_buf_is_loaded(bufnr)
if should_draw then
local explorer = core.get_explorer()