We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
client.supports_method
1 parent a4ed825 commit b4da76bCopy full SHA for b4da76b
1 file changed
lua/telescope/builtin/__lsp.lua
@@ -506,8 +506,14 @@ local function check_capabilities(method, bufnr)
506
local clients = get_clients { bufnr = bufnr }
507
508
for _, client in pairs(clients) do
509
- if client.supports_method(method, { bufnr = bufnr }) then
510
- return true
+ if vim.fn.has "nvim-0.11" == 1 then
+ if client:supports_method(method, bufnr) then
511
+ return true
512
+ end
513
+ else
514
+ if client.supports_method(method, { bufnr = bufnr }) then
515
516
517
end
518
519
0 commit comments