fix(lsp): adapt recent changes in nvim-lspconfig (#4348)

This commit is contained in:
Fengming Sun 2023-09-02 18:58:11 +08:00 committed by GitHub
parent 023fb27b32
commit 15dc529292
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ end
-- manually start the server and don't wait for the usual filetype trigger from lspconfig
local function buf_try_add(server_name, bufnr)
bufnr = bufnr or vim.api.nvim_get_current_buf()
require("lspconfig")[server_name].manager.try_add_wrapper(bufnr)
require("lspconfig")[server_name].manager:try_add_wrapper(bufnr)
end
-- check if the manager autocomd has already been configured since some servers can take a while to initialize