fix(LSP)!: Repair LSP config to handle plugin changes
Update the LSP config to avoid using setup_handlers for some mason plugins since the functions have been deprecated.
This commit is contained in:
parent
7f60e7fcb0
commit
5a8b28066c
|
|
@ -26,8 +26,7 @@ modules["mason-lspconfig"].setup_handlers {
|
||||||
["omnisharp"] = function ()
|
["omnisharp"] = function ()
|
||||||
modules["lspconfig"]["omnisharp"].setup {
|
modules["lspconfig"]["omnisharp"].setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = function (client,buffnr)
|
on_attach = function (_,_)
|
||||||
vim.notify("attaching to CS buffer {" .. buffnr .. "}")
|
|
||||||
local gr = vim.api.nvim_create_augroup("CS-OnAttach",{})
|
local gr = vim.api.nvim_create_augroup("CS-OnAttach",{})
|
||||||
vim.api.nvim_create_autocmd({"BufWritePre"}, {
|
vim.api.nvim_create_autocmd({"BufWritePre"}, {
|
||||||
group = gr,
|
group = gr,
|
||||||
|
|
@ -38,7 +37,6 @@ modules["mason-lspconfig"].setup_handlers {
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
vim.notify("Attached to CS buffer")
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
@ -50,12 +48,6 @@ modules['mason-null-ls'].setup({
|
||||||
automatic_setup = true,
|
automatic_setup = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
modules['mason-null-ls'].setup_handlers {
|
|
||||||
function (source_name, methods)
|
|
||||||
require('mason-null-ls.automatic_setup')(source_name,methods)
|
|
||||||
end,
|
|
||||||
-- Custom handlers can be added below if needed
|
|
||||||
}
|
|
||||||
|
|
||||||
modules['fidget'].setup{
|
modules['fidget'].setup{
|
||||||
text = {
|
text = {
|
||||||
|
|
@ -93,11 +85,6 @@ modules['mason-nvim-dap'].setup({
|
||||||
automatic_setup = true,
|
automatic_setup = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
modules['mason-nvim-dap'].setup_handlers {
|
|
||||||
function (source_name)
|
|
||||||
require('mason-nvim-dap.automatic_setup')(source_name)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
modules['dapui'].setup({
|
modules['dapui'].setup({
|
||||||
icons = {
|
icons = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user