mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-12-25 12:14:19 +01:00
fix(lsp): buffer should be second arg for supports_method
This commit is contained in:
@@ -64,7 +64,7 @@ function M._check_methods(client, buffer)
|
||||
for method, clients in pairs(M._supports_method) do
|
||||
clients[client] = clients[client] or {}
|
||||
if not clients[client][buffer] then
|
||||
if client.supports_method and client:supports_method(method, { bufnr = buffer }) then
|
||||
if client.supports_method and client:supports_method(method, buffer) then
|
||||
clients[client][buffer] = true
|
||||
vim.api.nvim_exec_autocmds("User", {
|
||||
pattern = "LspSupportsMethod",
|
||||
@@ -107,7 +107,7 @@ function M.on_supports_method(method, fn)
|
||||
})
|
||||
end
|
||||
|
||||
---@return _.lspconfig.options
|
||||
---@return vim.lsp.Config
|
||||
function M.get_config(server)
|
||||
local configs = require("lspconfig.configs")
|
||||
return rawget(configs, server)
|
||||
|
||||
Reference in New Issue
Block a user