Convert go stow to chezmoi
This commit is contained in:
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 }}
|
||||
3
dot_config/vim/plug.d/go.vim.tmpl
Normal file
3
dot_config/vim/plug.d/go.vim.tmpl
Normal file
@ -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 }}
|
||||
0
go/.local/bin/install-go-home → dot_local/bin/executable_install-go-home
Executable file → Normal file
0
go/.local/bin/install-go-home → dot_local/bin/executable_install-go-home
Executable file → Normal file
0
go/.local/bin/install-go-system → dot_local/bin/executable_install-go-system
Executable file → Normal file
0
go/.local/bin/install-go-system → dot_local/bin/executable_install-go-system
Executable file → Normal file
0
go/.local/bin/install-golangci-lint → dot_local/bin/executable_install-golangci-lint
Executable file → Normal file
0
go/.local/bin/install-golangci-lint → dot_local/bin/executable_install-golangci-lint
Executable file → Normal file
0
go/.local/bin/install-gomock-home → dot_local/bin/executable_install-gomock-home
Executable file → Normal file
0
go/.local/bin/install-gomock-home → dot_local/bin/executable_install-gomock-home
Executable file → Normal file
@ -1 +0,0 @@
|
||||
Plug 'fatih/vim-go'
|
||||
Loading…
Reference in New Issue
Block a user