You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
552 B
Cheetah

# chezmoi:template:left-delimiter="{{
"{{- /* vim: set filetype=vim: */ -}}
"{{- if lookPath "go" -}}
set noexpandtab
"{{ if lookPath "goimports" -}}
" use goimports for formatting
let g:go_fmt_command = "goimports"
"{{- end }}
" turn highlighting on
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
" Open go doc in vertical window, horizontal, or tab
nnoremap <leader>d :GoDef<CR>
nnoremap <leader>t :GoDefType<CR>
"{{- end }}