🔧 Updated alias and rustfmt lsp in nvim

This commit is contained in:
z3rOR0ne 2024-08-07 22:14:52 -07:00
parent 95c4fd7077
commit 6e814cd27f
2 changed files with 22 additions and 1 deletions

View file

@ -80,6 +80,27 @@ require("mason-lspconfig").setup_handlers({
["volar.takeOverMode.enabled"] = true,
},
})
lspconfig.rust_analyzer.setup({
settings = {
["rust-analyzer"] = {
procMacro = {
ignored = {
leptos_macro = {
"server",
},
},
},
rustfmt = {
overrideCommand = {
"leptosfmt",
"--stdin",
"--rustfmt",
},
edition = { "2021" },
},
},
},
})
end
lspconfig[server_name].setup(server_config)
end,