diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 448b911..dba9866 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -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.