fix: Ignore special buffers, fix auto-preview and not focus_on_open

This commit is contained in:
hedy
2023-11-30 10:17:00 +08:00
parent 4bbecbb92e
commit a5411b0a0c
3 changed files with 21 additions and 17 deletions

View File

@@ -184,26 +184,10 @@ function M.get_split_command()
end
end
---Whether table == {}
---@param t table
local function is_empty_table(t)
return t and next(t) == nil
end
local function table_has_content(t)
return t and next(t) ~= nil
end
local function has_value(tab, val)
for _, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
---Determine whether to include symbol in outline based on bufnr and its kind
---@param kind string
---@param bufnr integer