Use go via coc
This commit is contained in:
parent
2370ab7c1f
commit
83a55aa3a7
3 changed files with 22 additions and 11 deletions
11
.vim/coc-settings.json
Normal file
11
.vim/coc-settings.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"languageserver": {
|
||||||
|
"golang": {
|
||||||
|
"command": "gopls",
|
||||||
|
"args": [],
|
||||||
|
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
|
||||||
|
"filetypes": ["go"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ Plug 'cespare/vim-toml'
|
||||||
Plug 'Chiel92/vim-autoformat'
|
Plug 'Chiel92/vim-autoformat'
|
||||||
Plug 'drmingdrmer/vim-toggle-quickfix'
|
Plug 'drmingdrmer/vim-toggle-quickfix'
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'godlygeek/tabular'
|
||||||
Plug 'https://github.com/cyplo/vim-colors-solarized.git'
|
Plug 'https://github.com/cyplo/vim-colors-solarized.git'
|
||||||
Plug 'jremmen/vim-ripgrep'
|
Plug 'jremmen/vim-ripgrep'
|
||||||
|
|
21
common/up.sh
21
common/up.sh
|
@ -188,6 +188,16 @@ if [[ -z $NORUBY ]]; then
|
||||||
rvm install ruby --disable-binary
|
rvm install ruby --disable-binary
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z $NO_GO ]]; then
|
||||||
|
GOPATH="$HOME/go"
|
||||||
|
export GOPATH=`realpath "$GOPATH"`
|
||||||
|
mkdir -p "$GOPATH"
|
||||||
|
|
||||||
|
# excercism
|
||||||
|
go get -u -t github.com/exercism/cli/exercism
|
||||||
|
go get -u -t golang.org/x/tools/cmd/gopls
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z $NOVIM ]]; then
|
if [[ -z $NOVIM ]]; then
|
||||||
if [[ ! -d ~/.fzf ]]; then
|
if [[ ! -d ~/.fzf ]]; then
|
||||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||||
|
@ -206,16 +216,8 @@ if [[ -z $NOVIM ]]; then
|
||||||
vim +PlugClean! +qa
|
vim +PlugClean! +qa
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $NO_GO ]]; then
|
|
||||||
GOPATH="$HOME/go"
|
|
||||||
export GOPATH=`realpath "$GOPATH"`
|
|
||||||
mkdir -p "$GOPATH"
|
|
||||||
|
|
||||||
# excercism
|
|
||||||
go get -u github.com/exercism/cli/exercism
|
|
||||||
fi
|
|
||||||
|
|
||||||
nvm use node
|
nvm use node
|
||||||
|
npx npm install -g yarn
|
||||||
npx npm install -g reveal-md
|
npx npm install -g reveal-md
|
||||||
npx npm install -g diff-so-fancy
|
npx npm install -g diff-so-fancy
|
||||||
npx npm install -g cssnano
|
npx npm install -g cssnano
|
||||||
|
@ -224,4 +226,3 @@ echo
|
||||||
echo "now go ahead and restart"
|
echo "now go ahead and restart"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue