Update gitconfig, tmux.conf and go.vim

This commit is contained in:
Rob Watson 2021-10-08 14:27:22 +02:00
parent f9df2583f0
commit 08ea08f4a3
3 changed files with 2 additions and 7 deletions

View File

@ -6,6 +6,7 @@
acf = !git add . && git cf acf = !git add . && git cf
adp = add -p adp = add -p
an = add -N . an = add -N .
adn = an
b = branch b = branch
bn = rev-parse --abbrev-ref HEAD bn = rev-parse --abbrev-ref HEAD
br = branch br = branch

View File

@ -7,6 +7,7 @@ set -g base-index 1
set-window-option -g automatic-rename off set-window-option -g automatic-rename off
set-window-option -g allow-rename off set-window-option -g allow-rename off
set-option -g set-titles on set-option -g set-titles on
set-option -g focus-events on
set -g status-style 'fg=white, bg=colour8' set -g status-style 'fg=white, bg=colour8'
set -g window-status-current-style 'fg=black, bg=green' set -g window-status-current-style 'fg=black, bg=green'
set -g status-right '#[fg=black, bg=colour2] #(sysinfo) #[default] #[fg=white, bg=colour238] %H:%M #[default]' set -g status-right '#[fg=black, bg=colour2] #(sysinfo) #[default] #[fg=white, bg=colour238] %H:%M #[default]'

View File

@ -7,7 +7,6 @@ nmap <silent> <leader>gF :up<bar>:GoTestFunc<cr>
nmap <silent> <leader>gj :GoDecls<cr> nmap <silent> <leader>gj :GoDecls<cr>
nmap <silent> <leader>gJ :GoDeclsDir<cr> nmap <silent> <leader>gJ :GoDeclsDir<cr>
nmap <silent> K <plug>(lsp-hover)
nmap <silent> <leader>gk :GoDocBrowser<cr> nmap <silent> <leader>gk :GoDocBrowser<cr>
nmap <silent> <leader>gv :vsplit<bar>:GoAlternate!<cr> nmap <silent> <leader>gv :vsplit<bar>:GoAlternate!<cr>
@ -56,9 +55,6 @@ iabbrev fmtpl fmt.Println("")<esc>hi
iabbrev fmtpf fmt.Printf("\n")<esc>3hi iabbrev fmtpf fmt.Printf("\n")<esc>3hi
iabbrev mk make([]MyType, 0)<esc>9h iabbrev mk make([]MyType, 0)<esc>9h
iabbrev wr w http.ResponseWriter, r *http.Request iabbrev wr w http.ResponseWriter, r *http.Request
iabbrev httph http.Handler
iabbrev httphf http.HandlerFunc
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
iabbrev ttt t *testing.T iabbrev ttt t *testing.T
iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>} iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>}
iabbrev errl <esc>ccif err != nil {<cr>log.Println(err)<cr>} iabbrev errl <esc>ccif err != nil {<cr>log.Println(err)<cr>}
@ -66,11 +62,8 @@ 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 []b []byte()<esc>i
iabbrev logd log.Debug().Msg(" iabbrev logd log.Debug().Msg("
iabbrev logi log.Info().Msg(" iabbrev logi log.Info().Msg("
iabbrev loge log.Error().Msg(" iabbrev loge log.Error().Msg("
iabbrev logf log.Fatal().Msg(" iabbrev logf log.Fatal().Msg("
iabbrev rn return nil
iabbrev fnc func() {<cr><cr>}<esc>kcc
iabbrev ctxcc ctx context.Context iabbrev ctxcc ctx context.Context