Skip to content

Commit

Permalink
fixup! feat(lsp)!: support multiple clients in goto methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Oct 20, 2024
1 parent ec0dff3 commit 6dd80a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/lua/vim/lsp/buf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ local function get_locations(method, opts)
local bufnr = api.nvim_get_current_buf()
local clients = vim.lsp.get_clients({ method = method, bufnr = bufnr })
if not next(clients) then
vim.notify(vim.lsp._unsupported_method(method), vim.log.levels.WARN)
return
end
local win = api.nvim_get_current_win()
Expand Down

0 comments on commit 6dd80a3

Please sign in to comment.