Convert go stow to chezmoi

main
Buddy Sandidge 2 years ago
parent 309767509d
commit 7fa23b9b31

@ -1,3 +1,4 @@
{{ if lookPath "go" -}}
__APPS_GO_PATH=/usr/local/apps/golang/current/bin
if [ -d "${__APPS_GO_PATH}" ] && ! echo "${PATH}" | grep -q ${__APPS_GO_PATH} ; then
PATH="$__APPS_GO_PATH:${PATH}"
@ -7,3 +8,4 @@ unset __APPS_GO_PATH
if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
PATH="${PATH}:${HOME}/go/bin"
fi
{{- end }}

@ -1,3 +1,4 @@
{{ if lookPath "go" -}}
set noexpandtab
" use goimports for formatting
@ -13,3 +14,4 @@ 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 }}

@ -0,0 +1,3 @@
{{ if lookPath "go" -}}
Plug 'fatih/vim-go'
{{- end }}

@ -1,3 +1,4 @@
{{ if lookPath "go" -}}
snippet ignore "ignore function" !
func(...any) {}(${1})
endsnippet
@ -43,3 +44,4 @@ func Test${1}(t *testing.T) {
}
}
endsnippet
{{- end }}

@ -1 +0,0 @@
Plug 'fatih/vim-go'
Loading…
Cancel
Save