Files
outline.nvim/lua/symbols-outline/utils/lsp_utils.lua
Simrat Grewal 197a9aa45f refactor: Remove utils.request shim
* This is no longer needed as people have probably moved on from 0.5
2022-08-10 16:58:24 -07:00

13 lines
267 B
Lua

local M = {}
function M.is_buf_attached_to_lsp(bufnr)
local clients = vim.lsp.buf_get_clients(bufnr or 0)
return clients ~= nil and #clients > 0
end
function M.is_buf_markdown(bufnr)
return vim.api.nvim_buf_get_option(bufnr, 'ft') == 'markdown'
end
return M