Update Rust configuration

This commit is contained in:
Rob Watson 2022-12-13 22:18:34 +01:00
parent a49eeb6bd0
commit e600665c21
2 changed files with 20 additions and 0 deletions

18
nvimrc
View File

@ -766,6 +766,24 @@ nvim_lsp.gopls.setup{
-- Rust -- Rust
nvim_lsp.rust_analyzer.setup{ nvim_lsp.rust_analyzer.setup{
on_attach = on_attach, on_attach = on_attach,
settings = {
["rust-analyzer"] = {
imports = {
granularity = {
group = "module",
},
prefix = "self",
},
cargo = {
buildScripts = {
enable = true,
},
},
procMacro = {
enable = true
},
}
}
} }
-- Ruby -- Ruby

2
zshrc
View File

@ -59,6 +59,8 @@ alias bj="bat -l json"
alias by="bat -l yaml" alias by="bat -l yaml"
alias c="clear" alias c="clear"
alias cat="bat" alias cat="bat"
alias cb="cargo build"
alias cc="cargo check"
alias cdg=cdgit alias cdg=cdgit
alias cdgit='cd $(git rev-parse --show-toplevel)' alias cdgit='cd $(git rev-parse --show-toplevel)'
alias clp="tmux kill-pane" alias clp="tmux kill-pane"