refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / vim-go / go.vim
1 """"""""""""""""""""""""""""""
2 "  Golang-specific defaults  "
3 " from webinstall.dev/vim-go "
4 """"""""""""""""""""""""""""""
5
6 " tell syntastic that go, golint, and errcheck are installed
7 let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
8
9 " tell vim-go that goimports is installed
10 let g:go_fmt_command = "goimports"
11
12 " Show type info as you type
13 let g:go_auto_type_info = 1
14
15 " golangci-lint on save
16 let g:go_metalinter_autosave=1
17
18 " tell vim-go to highlight
19 let g:go_highlight_functions = 1
20 let g:go_highlight_methods = 1
21 let g:go_highlight_structs = 1
22 let g:go_highlight_operators = 1
23 let g:go_highlight_build_constraints = 1
24
25 " and lots of extra highligting
26 let g:go_highlight_extra_types = 1
27 let g:go_highlight_operators = 1
28 let g:go_highlight_function_calls = 1
29 let g:go_highlight_fields = 1
30 let g:go_highlight_build_constraints = 1
31 let g:go_highlight_generate_tags = 1
32 let g:go_highlight_format_strings = 1
33 let g:go_highlight_variable_declarations = 1
34 let g:go_highlight_variable_assignments = 1
35
36 " and error highlighting
37 let g:go_highlight_array_whitespace_error = 1
38 let g:go_highlight_chan_whitespace_error = 1
39 let g:go_highlight_space_tab_error = 1
40 let g:go_highlight_trailing_whitespace_error = 1
41
42 " highlighting that doesn't seem to help
43 " let g:go_highlight_string_spellcheck = 1
44 " let g:go_highlight_function_parameters = 1
45 " let g:go_highlight_types = 1