Update vimrc and zshrc
This commit is contained in:
parent
6829ce94bb
commit
f05c957743
|
@ -26,6 +26,7 @@
|
|||
rr = !git reset --hard $(git rb)
|
||||
shp = show -p
|
||||
s = status
|
||||
sq = merge --squash
|
||||
ss = stash save
|
||||
st = status
|
||||
undo = reset --soft HEAD^
|
||||
|
|
|
@ -63,3 +63,4 @@ iabbrev logd log.Debug().Msg("
|
|||
iabbrev logi log.Info().Msg("
|
||||
iabbrev loge log.Error().Msg("
|
||||
iabbrev logf log.Fatal().Msg("
|
||||
iabbrev rn return nil
|
||||
|
|
6
vimrc
6
vimrc
|
@ -118,6 +118,8 @@ nnoremap <silent> <leader>/ :nohlsearch<cr>
|
|||
nnoremap <silent> <leader><space> :nohlsearch<cr>
|
||||
" Select just-pasted text:
|
||||
nnoremap <silent> <leader>0 `[v`]
|
||||
" Select just-pasted text and re-indent:
|
||||
nnoremap <silent> <leader>) `[v`]=
|
||||
nnoremap <silent> <leader>1 :set relativenumber!<cr>
|
||||
nnoremap <leader>m :marks<cr>
|
||||
nnoremap <leader>v :vsplit<cr>
|
||||
|
@ -320,11 +322,11 @@ function! s:on_lsp_buffer_enabled() abort
|
|||
" Misc actions
|
||||
nmap <buffer> <leader>ci <plug>(lsp-call-hierarchy-incoming)
|
||||
nmap <buffer> <leader>co <plug>(lsp-call-hierarchy-outgoing)
|
||||
nmap <buffer> <leader>a <plug>(lsp-code-action)
|
||||
nmap <buffer> <leader>ca <plug>(lsp-code-action)
|
||||
nmap <buffer> <leader>i <plug>(lsp-implementation)
|
||||
nmap <buffer> <leader>r <plug>(lsp-references)
|
||||
nmap <buffer> <leader>d <plug>(lsp-hover)
|
||||
nmap <buffer> <leader>o :LspCodeAction source.organizeImports<cr>
|
||||
nmap <buffer> <leader>o :silent LspCodeAction source.organizeImports<cr>
|
||||
|
||||
nmap <buffer> <leader>e <plug>(lsp-rename)
|
||||
endfunction
|
||||
|
|
3
zshrc
3
zshrc
|
@ -131,6 +131,9 @@ alias c.="cd .."
|
|||
alias c-="cd -"
|
||||
alias cdgit='cd $(git rev-parse --show-toplevel)'
|
||||
alias cdg=cdgit
|
||||
alias gg="go get"
|
||||
alias gt="go test"
|
||||
alias gb="go build"
|
||||
alias ll="exa -l --group-directories-first --git"
|
||||
alias sysc="systemctl"
|
||||
alias zzz="sudo systemctl hibernate"
|
||||
|
|
Loading…
Reference in New Issue