fix: include buffer in LSP no support message (#236)

This commit is contained in:
Steven Arcangeli 2023-04-20 20:41:53 -07:00
parent 98a50929cf
commit 00cac8e96f

View file

@ -59,7 +59,10 @@ M.fetch_symbols = function(bufnr)
local params = { textDocument = vim.lsp.util.make_text_document_params(bufnr) }
local client = get_client(bufnr)
if not client then
vim.notify("No LSP client found that supports symbols", vim.log.levels.WARN)
vim.notify(
string.format("No LSP client found that supports symbols in buffer %d", bufnr),
vim.log.levels.WARN
)
return
end
local request_success =
@ -79,7 +82,10 @@ M.fetch_symbols_sync = function(bufnr, opts)
local params = { textDocument = vim.lsp.util.make_text_document_params(bufnr) }
local client = get_client(bufnr)
if not client then
vim.notify("No LSP client found that supports symbols", vim.log.levels.WARN)
vim.notify(
string.format("No LSP client found that supports symbols in buffer %d", bufnr),
vim.log.levels.WARN
)
return
end
local response