mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +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 method vim.lsp.protocol.Method
|
||||||
---@param bufnr? integer some lsp support methods only in specific files
|
---@param bufnr? integer some lsp support methods only in specific files
|
||||||
---@return boolean
|
---@return boolean
|
||||||
local function client_supports_method(client, method, bufnr)
|
local function client_supports_method(client, method, bufnr) return client:supports_method(method, bufnr) end
|
||||||
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
|
|
||||||
|
|
||||||
-- The following two autocommands are used to highlight references of the
|
-- The following two autocommands are used to highlight references of the
|
||||||
-- word under your cursor when your cursor rests there for a little while.
|
-- word under your cursor when your cursor rests there for a little while.
|
||||||
|
|||||||
Reference in New Issue
Block a user