simplify as we are on neovim +11 anyways...

This commit is contained in:
Thomas Ruoff
2025-11-25 08:05:40 +01:00
parent 9b8162da84
commit 2ed005a880

View File

@@ -102,13 +102,7 @@ return {
---@param method vim.lsp.protocol.Method
---@param bufnr? integer some lsp support methods only in specific files
---@return boolean
local function client_supports_method(client, method, bufnr)
if vim.fn.has 'nvim-0.11' == 1 then
return client:supports_method(method, bufnr)
else
return client.supports_method(method, { bufnr = bufnr })
end
end
local function client_supports_method(client, method, bufnr) return client:supports_method(method, bufnr) end
-- The following two autocommands are used to highlight references of the
-- word under your cursor when your cursor rests there for a little while.