From 08ea08f4a32a45a1be3489163f6a865a918c26f9 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 8 Oct 2021 14:27:22 +0200 Subject: [PATCH] Update gitconfig, tmux.conf and go.vim --- gitconfig | 1 + tmux.conf | 1 + vim/after/ftplugin/go.vim | 7 ------- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gitconfig b/gitconfig index 250d1f8..4298882 100644 --- a/gitconfig +++ b/gitconfig @@ -6,6 +6,7 @@ acf = !git add . && git cf adp = add -p an = add -N . + adn = an b = branch bn = rev-parse --abbrev-ref HEAD br = branch diff --git a/tmux.conf b/tmux.conf index 245a4d6..837789b 100644 --- a/tmux.conf +++ b/tmux.conf @@ -7,6 +7,7 @@ set -g base-index 1 set-window-option -g automatic-rename off set-window-option -g allow-rename off set-option -g set-titles on +set-option -g focus-events on set -g status-style 'fg=white, bg=colour8' 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]' diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index b5f158f..3962ad1 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -7,7 +7,6 @@ nmap gF :up:GoTestFunc nmap gj :GoDecls nmap gJ :GoDeclsDir -nmap K (lsp-hover) nmap gk :GoDocBrowser nmap gv :vsplit:GoAlternate! @@ -56,9 +55,6 @@ iabbrev fmtpl fmt.Println("")hi iabbrev fmtpf fmt.Printf("\n")3hi iabbrev mk make([]MyType, 0)9h iabbrev wr w http.ResponseWriter, r *http.Request -iabbrev httph http.Handler -iabbrev httphf http.HandlerFunc -iabbrev fttt ccfunc TestSomething(t *testing.T) {}k9l iabbrev ttt t *testing.T iabbrev errP ccif err != nil {panic(err)} iabbrev errl ccif err != nil {log.Println(err)} @@ -66,11 +62,8 @@ iabbrev errf ccif err != nil {log.Fatal(err)} iabbrev errp ccif err != nil {fmt.Println(err)} iabbrev errr ccif err != nil {return err} iabbrev defr ccdefer func() {}()ki -iabbrev []b []byte()i iabbrev logd log.Debug().Msg(" iabbrev logi log.Info().Msg(" iabbrev loge log.Error().Msg(" iabbrev logf log.Fatal().Msg(" -iabbrev rn return nil -iabbrev fnc func() {}kcc iabbrev ctxcc ctx context.Context