mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
fix: include buffer in LSP no support message (#236)
This commit is contained in:
parent
98a50929cf
commit
00cac8e96f
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue