🔧 Updated alias and rustfmt lsp in nvim
This commit is contained in:
parent
95c4fd7077
commit
6e814cd27f
2 changed files with 22 additions and 1 deletions
|
|
@ -80,6 +80,27 @@ require("mason-lspconfig").setup_handlers({
|
||||||
["volar.takeOverMode.enabled"] = true,
|
["volar.takeOverMode.enabled"] = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
lspconfig.rust_analyzer.setup({
|
||||||
|
settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
procMacro = {
|
||||||
|
ignored = {
|
||||||
|
leptos_macro = {
|
||||||
|
"server",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
rustfmt = {
|
||||||
|
overrideCommand = {
|
||||||
|
"leptosfmt",
|
||||||
|
"--stdin",
|
||||||
|
"--rustfmt",
|
||||||
|
},
|
||||||
|
edition = { "2021" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
lspconfig[server_name].setup(server_config)
|
lspconfig[server_name].setup(server_config)
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
2
aliases
2
aliases
|
|
@ -66,7 +66,7 @@ alias {ex,esc}="exit"
|
||||||
alias {his,hist}="history"
|
alias {his,hist}="history"
|
||||||
alias mnt="doas mount /dev/sda1 /mnt/media/usb-drive && cd /mnt/media/usb-drive && ls"
|
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 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 iumnt="doas umount /home/brian/iphone"
|
||||||
alias kmnt="doas mount /dev/sda /mnt/media/kobo/ && cd /mnt/media/kobo/.kobo && ls"
|
alias kmnt="doas mount /dev/sda /mnt/media/kobo/ && cd /mnt/media/kobo/.kobo && ls"
|
||||||
alias kumnt="doas umount /dev/sda /mnt/media/kobo"
|
alias kumnt="doas umount /dev/sda /mnt/media/kobo"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue