Compare commits
2 Commits
a49eeb6bd0
...
2afd27fdea
Author | SHA1 | Date |
---|---|---|
Rob Watson | 2afd27fdea | |
Rob Watson | e600665c21 |
18
nvimrc
18
nvimrc
|
@ -766,6 +766,24 @@ nvim_lsp.gopls.setup{
|
|||
-- Rust
|
||||
nvim_lsp.rust_analyzer.setup{
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
imports = {
|
||||
granularity = {
|
||||
group = "module",
|
||||
},
|
||||
prefix = "self",
|
||||
},
|
||||
cargo = {
|
||||
buildScripts = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
procMacro = {
|
||||
enable = true
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Ruby
|
||||
|
|
|
@ -62,6 +62,7 @@ iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
|
|||
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
|
||||
iabbrev fmtpf fmt.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev fmtpl fmt.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev fmterr fmt.Errorf(": %s", err)<esc>10hi<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev logpf log.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev logpl log.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev ctxcc ctx context.Context
|
||||
|
|
6
zshrc
6
zshrc
|
@ -59,11 +59,13 @@ alias bj="bat -l json"
|
|||
alias by="bat -l yaml"
|
||||
alias c="clear"
|
||||
alias cat="bat"
|
||||
alias cb="cargo build"
|
||||
alias cc="cargo check"
|
||||
alias cdg=cdgit
|
||||
alias cdgit='cd $(git rev-parse --show-toplevel)'
|
||||
alias clp="tmux kill-pane"
|
||||
alias clw="tmux kill-window"
|
||||
alias d="dirs -v"
|
||||
alias d="docker"
|
||||
alias dc="docker-compose -f docker-compose.yml"
|
||||
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
|
||||
alias dockup="sudo systemctl start docker"
|
||||
|
@ -87,9 +89,11 @@ alias kcurl="kubectl run curl --image curlimages/curl --image-pull-policy=Always
|
|||
alias kd="kubectl describe"
|
||||
alias kdel="kubectl delete"
|
||||
alias kg="kubectl get"
|
||||
alias kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh"
|
||||
alias kgp="kubectl get pod -o wide"
|
||||
alias kgs="kubectl get svc -o wide"
|
||||
ksecd() { kubectl get secret "$1" -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' }
|
||||
alias kmplayer="kubectl run mplayer --image olmesm/mplayer-docker:latest --image-pull-policy=Always -it --rm -- sh"
|
||||
alias kw="kubectl get events -w"
|
||||
alias k9="kill -9"
|
||||
alias ll="exa -l --group-directories-first --git"
|
||||
|
|
Loading…
Reference in New Issue