fix: adjust more to make it backward compatible for 0.11-

This commit is contained in:
27Onion Nebell
2025-04-12 12:26:40 +08:00
parent 5779c6f6a7
commit 1460136dd0
6 changed files with 66 additions and 14 deletions

View File

@@ -208,7 +208,7 @@ end
---@param bufnr integer
---@return boolean include
function M.should_include_symbol(kind, bufnr)
local ft = vim.api.nvim_buf_get_option(bufnr, 'ft')
local ft = vim.api.nvim_get_option_value('ft', { buf = bufnr })
-- There can only be one kind in markdown and norg as of now
if ft == 'markdown' or ft == 'norg' or kind == nil then
return true
@@ -232,7 +232,7 @@ function M.should_include_symbol(kind, bufnr)
return filter_table[kind] ~= false
end
---@param client lsp.client|number
---@param client vim.lsp.Client|number
function M.is_client_blacklisted(client)
if not client then
return false