~alexdavid/dotfiles

ref: e41da60478508d45b875ef7aa13ebb77d2fa90fb dotfiles/nvim/plugin/go.vim -rw-r--r-- 239 bytes
e41da604 — Alex David Add mpd config 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
" Disable built-in mappings (overwrites gd shortcut)
let g:go_def_mapping_enabled = 0

" Run GoImports before save
function! Run_go_imports()
  silent exec "!goimports -w %"
  e
endfunction
autocmd BufWritePost /*.go call Run_go_imports()