" -------- VIM-GO -------- let g:go_def_mode='gopls' let g:go_info_mode="gopls" let g:go_auto_type_info='gopls' let g:go_fmt_command = "goimports" let g:go_metalinter_autosave = 0 let g:go_metalinter_command = "golangci-lint" let g:go_metalinter_enabled = ['govet', 'errcheck', 'deadcode', 'staticcheck', 'ineffassign'] let g:go_metalinter_deadline = "10s" let g:go_metalinter_autosave_enabled = ['govet', 'errcheck', 'deadcode', 'staticcheck', 'ineffassign'] let g:go_highlight_functions = 1 let g:go_highlight_function_calls = 1 let g:go_highlight_methods = 1 let g:go_highlight_fields = 1 let g:go_highlight_types = 1 let g:go_highlight_structs = 1 let g:go_highlight_interfaces = 1 let g:go_highlight_operators = 1 let g:go_highlight_build_constraints = 1 let g:go_code_completion_enabled = 1 let g:go_auto_type_info = 1 let g:syntastic_c_checkers = [] let g:syntastic_rust_checkers = [] let g:syntastic_cpp_checkers = [] let g:syntastic_python_python_exec = 'python3' " get rid of bull shit mappings let g:go_doc_keywordprg_enabled = 0 let g:go_def_mapping_enabled = 0 let g:go_bin_path = "/usr/lib/google-golang/bin/go " "let $GOPATH = $HOME."/go" " --------- GOLANG MAPPINGS --------- nmap d :GoDef nmap b :GoBuild nmap tf :GoTestFunc nmap fs :GoFillStruct nmap at :GoAddTags nmap ie :GoIfErr nmap ga :GoAlternate nmap gat :GoAddTags nmap grt :GoRemoveTags nmap gc :GoCoverageToggle nmap gd :GoDef nmap gfs :GoFillStruct nmap gl :GoMetaLinter nmap gr :GoRun nmap gt :GoTest nmap gtf :GoTestFunc nmap gv :GoVet autocmd FileType go nmap gtj :CocCommand go.tags.add json autocmd FileType go nmap gty :CocCommand go.tags.add yaml autocmd FileType go nmap gtx :CocCommand go.tags.clear "nmap gd (coc-definition) "nmap gy (coc-type-definition) "nmap gi (coc-implementation) "nmap gr (coc-references)