From 8275315dc909c4627bfb7ba9f0f6268582768192 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 26 Jun 2022 22:26:11 +0800 Subject: [PATCH] add vim-go and those setting --- .config/nvim/init.vim | 3 +++ .config/shell/bm-dirs | 2 +- .config/shell/profile | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5707eae..cf1e5d6 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -17,6 +17,7 @@ Plug 'vimwiki/vimwiki' Plug 'vim-airline/vim-airline' Plug 'tpope/vim-commentary' Plug 'ap/vim-css-color' +Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } call plug#end() set title @@ -39,6 +40,7 @@ set noshowcmd set number relativenumber " Enable autocompletion: set wildmode=longest,list,full + set completeopt=longest,menuone " Disables automatic commenting on newline: autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " Perform dot commands over visual blocks: @@ -154,3 +156,4 @@ nnoremap h :call ToggleHiddenAll() " So ":vs ;cfz" will expand into ":vs /home//.config/zsh/.zshrc" " if typed fast without the timeout. source ~/.config/nvim/shortcuts.vim +au filetype go inoremap . . diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs index 9d212ec..460174c 100644 --- a/.config/shell/bm-dirs +++ b/.config/shell/bm-dirs @@ -10,5 +10,5 @@ m ${XDG_MUSIC_DIR:-$HOME/Music} mn /mnt pp ${XDG_PICTURES_DIR:-$HOME/Pictures} sc $HOME/.local/bin -src $HOME/.local/src +src $HOME/src vv ${XDG_VIDEOS_DIR:-$HOME/Videos} diff --git a/.config/shell/profile b/.config/shell/profile index 9515179..1d8df3f 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -6,7 +6,7 @@ # to clean up. # Adds `~/.local/bin` to $PATH -export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}" +export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}:~/.local/share/go/bin" unsetopt PROMPT_SP