diff --git a/lua/symbols-outline.lua b/lua/symbols-outline.lua index 3aec829..68805fc 100644 --- a/lua/symbols-outline.lua +++ b/lua/symbols-outline.lua @@ -31,7 +31,7 @@ local function wipe_state() end local function __refresh() - if M.view.bufnr ~= nil then + if M.view:is_open() then local function refresh_handler(response) if response == nil or type(response) ~= 'table' then return