fix: migrating to 0.11
fix: migrating to 0.11 fix: migrating to 0.11 fix: migrating to 0.11
This commit is contained in:
@@ -7,13 +7,14 @@ function M.is_buf_attached_to_lsp(bufnr)
|
||||
if _G._outline_nvim_has[10] then
|
||||
clients = vim.lsp.get_clients({ bufnr = bufnr or 0 })
|
||||
else
|
||||
---@diagnostic disable-next-line: deprecated
|
||||
clients = vim.lsp.get_active_clients({ bufnr = bufnr or 0 })
|
||||
end
|
||||
return clients ~= nil and #clients > 0
|
||||
end
|
||||
|
||||
function M.is_buf_markdown(bufnr)
|
||||
return vim.api.nvim_buf_get_option(bufnr, 'ft') == 'markdown'
|
||||
return vim.api.nvim_get_option_value('ft', { buf = bufnr }) == 'markdown'
|
||||
end
|
||||
|
||||
--- Merge all client token lists in an LSP response
|
||||
|
||||
Reference in New Issue
Block a user