Commit b7e3452

mo khan <mo@mokhan.ca>
2021-07-30 05:48:55
feat: install vim-go
1 parent df19119
Changed files (4)
ftplugin
pack
plugins
start
ftplugin/go.vim
@@ -1,3 +1,4 @@
-nnoremap <leader>t :!go test %<cr>
-nnoremap <leader>r :!go run %<cr>
+nnoremap <leader>ta <Plug>(go-test)
+nnoremap <leader>t <Plug>(go-test-func)
+nnoremap <leader>r <Plug>(go-run)
 set nolist
pack/plugins/start/go
@@ -0,0 +1,1 @@
+Subproject commit f3ebf20e2c5dd672d55af26fdde6edb41971336b
.gitmodules
@@ -19,6 +19,9 @@
 [submodule "pack/plugins/start/git"]
   path = pack/plugins/start/git
   url = https://github.com/tpope/vim-git.git
+[submodule "pack/plugins/start/go"]
+  path = pack/plugins/start/go
+  url = https://github.com/fatih/vim-go.git
 [submodule "pack/plugins/start/javascript"]
   path = pack/plugins/start/javascript
   url = https://github.com/pangloss/vim-javascript.git
vimrc
@@ -187,6 +187,8 @@ iabbrev pwns Co-authored-by: Nishant Sinha <nishnha@github.com>
 let g:airline#extensions#tabline#enabled = 1
 let g:airline#extensions#tabline#formatter = 'unique_tail'
 let g:fzf_tags_command = 'ctags -R'
+let g:go_fmt_autosave = 1
+let g:go_play_browser_command = 'browser %URL%'
 let g:ruby_indent_assignment_style = 'variable'
 let g:ruby_indent_block_style = 'do'
 let g:snipMate = { 'snippet_version' : 1 }