nvimrc: Update iabbrevs

This commit is contained in:
Rob Watson 2022-06-10 19:08:01 +02:00
parent d81052b967
commit f7aabb50be
2 changed files with 3 additions and 2 deletions

1
nvimrc
View File

@ -143,6 +143,7 @@ nnoremap <leader>dq ggVG"_d:wq<cr>
" abbrevs " abbrevs
iabbrev esdebug debugger; // eslint-disable-line no-debugger iabbrev esdebug debugger; // eslint-disable-line no-debugger
iabbrev bashstrict set -euo pipefail<cr>IFS=$'\n\t'<cr>
lua <<EOF lua <<EOF
function _G.dump(...) function _G.dump(...)

View File

@ -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 errp <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}
iabbrev errr <esc>ccif err != nil {<cr>return err<cr>} 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("")<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 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 logpl log.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
iabbrev ctxcc ctx context.Context iabbrev ctxcc ctx context.Context
iabbrev err! err != nil {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr> iabbrev err! err != nil {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr>