add vim-go and those setting

This commit is contained in:
Justin Lin
2022-06-26 22:26:11 +08:00
parent 8a376d12eb
commit 8275315dc9
3 changed files with 5 additions and 2 deletions

View File

@@ -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 <leader>h :call ToggleHiddenAll()<CR>
" So ":vs ;cfz" will expand into ":vs /home/<user>/.config/zsh/.zshrc"
" if typed fast without the timeout.
source ~/.config/nvim/shortcuts.vim
au filetype go inoremap <buffer> . .<C-x><C-o>