Setup for go development

This commit is contained in:
Andrew Tomaka 2020-09-28 10:29:27 -04:00
parent 391c619d1b
commit 0b2520274e
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 4 additions and 0 deletions

2
vimrc
View file

@ -28,6 +28,8 @@ Plug 'tpope/vim-rails'
Plug 'vim-ruby/vim-ruby'
" Testing
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
" Plug 'dense-analysis/ale'
" Plug 'w0rp/ale'
call plug#end()

2
zshenv
View file

@ -4,6 +4,7 @@ RBENV_PATH="$HOME/.rbenv/bin"
GNU_TOOLS_PATH="/usr/local/opt/coreutils/libexec/gnubin"
GNU_TOOLS_MAN_PATH="/usr/local/opt/coreutils/libexec/gnuman"
APACHE_MAVEN_PATH="$HOME/bin/apache-maven-3.3.9/bin"
GO_HOME_PATH="$HOME/go-workspace/bin"
if [[ "$OSTYPE" == darwin* ]]; then
GO_DIR="/usr/local/opt/go/libexec"
@ -24,6 +25,7 @@ fi
[[ -d "$APACHE_MAVEN_PATH" ]] && PATH="$APACHE_MAVEN_PATH:$PATH"
[[ -d "$GO_DIR" ]] && PATH="$GO_DIR:$PATH"
[[ -d "$LOCAL_SBIN_PATH" ]] && PATH="$LOCAL_SBIN_PATH:$PATH"
[[ -d "$GO_HOME_PATH" ]] && PATH="$GO_HOME_PATH:$PATH"
# MAN
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"