Compare commits
2 Commits
a49eeb6bd0
...
2afd27fdea
Author | SHA1 | Date | |
---|---|---|---|
|
2afd27fdea | ||
|
e600665c21 |
18
nvimrc
18
nvimrc
@ -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
|
||||||
|
@ -62,6 +62,7 @@ iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
|
|||||||
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
|
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
|
||||||
iabbrev fmtpf fmt.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
|
iabbrev fmtpf fmt.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
|
||||||
iabbrev fmtpl fmt.Println("")<esc>hi<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 logpf log.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
|
||||||
iabbrev logpl log.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
|
iabbrev logpl log.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
|
||||||
iabbrev ctxcc ctx context.Context
|
iabbrev ctxcc ctx context.Context
|
||||||
|
6
zshrc
6
zshrc
@ -59,11 +59,13 @@ 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"
|
||||||
alias clw="tmux kill-window"
|
alias clw="tmux kill-window"
|
||||||
alias d="dirs -v"
|
alias d="docker"
|
||||||
alias dc="docker-compose -f docker-compose.yml"
|
alias dc="docker-compose -f docker-compose.yml"
|
||||||
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
|
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
|
||||||
alias dockup="sudo systemctl start docker"
|
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 kd="kubectl describe"
|
||||||
alias kdel="kubectl delete"
|
alias kdel="kubectl delete"
|
||||||
alias kg="kubectl get"
|
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 kgp="kubectl get pod -o wide"
|
||||||
alias kgs="kubectl get svc -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}}' }
|
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 kw="kubectl get events -w"
|
||||||
alias k9="kill -9"
|
alias k9="kill -9"
|
||||||
alias ll="exa -l --group-directories-first --git"
|
alias ll="exa -l --group-directories-first --git"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user