mirror of
https://github.com/tomru/nvim.git
synced 2026-03-02 22:17:13 +01:00
simplify as we are on neovim +11 anyways...
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user