I think I have it, at least for now, the augroup I added was causing issues
This commit is contained in:
parent
26597230e3
commit
70b01c9263
@ -21,6 +21,7 @@ return {
|
||||
-- get all the servers that are available thourgh mason-lspconfig
|
||||
local all_mslp_servers = vim.tbl_keys(require("mason-lspconfig").get_mappings().lspconfig_to_package)
|
||||
|
||||
-- parse custom configs from lsp.config and add to ensure intsalled
|
||||
local ensure_installed = {} ---@type string[]
|
||||
for server, server_opts in pairs(require("lazyvim.plugins.lsp.config").opts.servers) do
|
||||
if server_opts then
|
||||
@ -32,6 +33,7 @@ return {
|
||||
end
|
||||
end
|
||||
|
||||
-- merge ensure installed
|
||||
opts.ensure_installed = vim.tbl_deep_extend("force",
|
||||
{},
|
||||
opts.ensure_installed or {},
|
||||
|
||||
@ -9,7 +9,7 @@ end
|
||||
---@param on_attach fun(client, buffer)
|
||||
function M.on_attach(on_attach)
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup("my.lsp", {}),
|
||||
-- group = vim.api.nvim_create_augroup("my.lsp", {}),
|
||||
callback = function(args)
|
||||
local buffer = args.buf
|
||||
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user