Browse Source

add mapping for vim-go :GoDeclsDir

Andrew Swistak 8 years ago
parent
commit
f54a94d3b5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vimrc

+ 2 - 1
vimrc

@@ -422,9 +422,10 @@ let g:go_highlight_extra_types = 1
 let g:go_highlight_format_strings = 1
 let g:go_highlight_generate_tags = 1
 let g:go_fmt_autosave = 0 " Let syntastic do this
-let g:syntastic_go_checkers = ['gofmt']
 let g:go_fmt_experimental = 1 " Maintain folds after GoFmt + write
+let g:syntastic_go_checkers = ['gofmt']
 set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim
+au BufRead,BufNewFile *.go map <leader>d :GoDeclsDir<cr>
 
 " JSON things
 let g:vim_json_syntax_conceal = 1