🔧 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,

View file

@ -66,7 +66,7 @@ alias {ex,esc}="exit"
alias {his,hist}="history"
alias mnt="doas mount /dev/sda1 /mnt/media/usb-drive && cd /mnt/media/usb-drive && ls"
alias umnt="doas umount /mnt/media/usb-drive"
alias imnt="ifuse /home/brian/iphone && cd /home/brian/iphone && ls"
alias {imnt,iphone}="ifuse /home/brian/iphone && cd /home/brian/iphone && ls"
alias iumnt="doas umount /home/brian/iphone"
alias kmnt="doas mount /dev/sda /mnt/media/kobo/ && cd /mnt/media/kobo/.kobo && ls"
alias kumnt="doas umount /dev/sda /mnt/media/kobo"