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 __APPS_GO_PATH=/usr/local/apps/golang/current/bin
if [ -d "${__APPS_GO_PATH}" ] && ! echo "${PATH}" | grep -q ${__APPS_GO_PATH} ; then if [ -d "${__APPS_GO_PATH}" ] && ! echo "${PATH}" | grep -q ${__APPS_GO_PATH} ; then
PATH="$__APPS_GO_PATH:${PATH}" 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 if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
PATH="${PATH}:${HOME}/go/bin" PATH="${PATH}:${HOME}/go/bin"
fi fi
{{- end }}

@ -1,3 +1,4 @@
{{ if lookPath "go" -}}
set noexpandtab set noexpandtab
" use goimports for formatting " use goimports for formatting
@ -13,3 +14,4 @@ let g:go_highlight_build_constraints = 1
" Open go doc in vertical window, horizontal, or tab " Open go doc in vertical window, horizontal, or tab
nnoremap <leader>d :GoDef<CR> nnoremap <leader>d :GoDef<CR>
nnoremap <leader>t :GoDefType<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" ! snippet ignore "ignore function" !
func(...any) {}(${1}) func(...any) {}(${1})
endsnippet endsnippet
@ -43,3 +44,4 @@ func Test${1}(t *testing.T) {
} }
} }
endsnippet endsnippet
{{- end }}

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