Add conform for foramtting and mason back for lsp installation but nothing more

This commit is contained in:
Zam Kokott
2025-11-12 14:11:48 +00:00
parent 4acf9a7852
commit f7db5e3599
6 changed files with 27 additions and 16 deletions

View File

@@ -2,20 +2,5 @@ return {
"neovim/nvim-lspconfig",
config = function()
vim.lsp.enable({ "lua_ls", "basedpyright", "gopls", "html", "yamlls", "svelte-language-server", "clangd", "ansiblels" })
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("lsp", { clear = true }),
callback = function(args)
-- 2
vim.api.nvim_create_autocmd("BufWritePre", {
-- 3
buffer = args.buf,
callback = function()
-- 4 + 5
vim.lsp.buf.format { async = false, id = args.data.client_id }
end,
})
end
})
end
}