vimrc: add go plugin
All checks were successful
dotfiles/pipeline/head This commit looks good

This commit is contained in:
Johannes Rothe 2022-02-06 14:45:29 +01:00
parent d1b30c8959
commit 78d98d31d9
2 changed files with 10 additions and 1 deletions

View File

@ -23,4 +23,6 @@ if test -e /home/rothe/catkin_ws/install/setup.bash
bass source ~/.profile
end
set -Ua fish_user_paths ~/go/bin/
eval (keychain --eval --agents ssh)

View File

@ -21,6 +21,12 @@ augroup terraform
autocmd FileType terraform :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
autocmd FileType terraform nnoremap <F9> :! terraform fmt<CR>
augroup end
augroup go
autocmd FileType go :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
autocmd FileType go nnoremap <F9> :GoFmt<CR>
au FileType go nmap <F7> <Plug>(go-build)
au FileType go nmap <F8> <Plug>(go-run)
augroup end
augroup sh
autocmd FileType sh :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
augroup end
@ -47,6 +53,7 @@ Plug 'sainnhe/sonokai'
" Language specific
Plug 'vim-python/python-syntax'
Plug 'wgwoods/vim-systemd-syntax'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()
" Theme
@ -85,7 +92,7 @@ autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-t> :NERDTreeToggle<CR>
" RAINBOW_PARENTHESES
au FileType c,cpp,py call rainbow#load()
"au FileType c,cpp,py call rainbow#load()
" python syntax
let g:python_highlight_all = 1