nvimrc: Update iabbrevs
This commit is contained in:
parent
d81052b967
commit
f7aabb50be
1
nvimrc
1
nvimrc
|
@ -143,6 +143,7 @@ nnoremap <leader>dq ggVG"_d:wq<cr>
|
|||
|
||||
" abbrevs
|
||||
iabbrev esdebug debugger; // eslint-disable-line no-debugger
|
||||
iabbrev bashstrict set -euo pipefail<cr>IFS=$'\n\t'<cr>
|
||||
|
||||
lua <<EOF
|
||||
function _G.dump(...)
|
||||
|
|
|
@ -60,9 +60,9 @@ iabbrev errf <esc>ccif err != nil {<cr>log.Fatal(err)<cr>}
|
|||
iabbrev errp <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}
|
||||
iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
|
||||
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
|
||||
iabbrev fmtpf fmt.Printf("")<esc>hi<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 logpf log.Printf("")<esc>hi<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
|
||||
iabbrev err! err != nil {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr>
|
||||
|
|
Loading…
Reference in New Issue