Skip to content

Commit

Permalink
changing lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
nettrino committed Aug 28, 2022
1 parent da1ae64 commit 904c3d0
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ Plug 'janko/vim-test'

" language server
if has('nvim')
" Order matters: https://github.com/williamboman/mason-lspconfig.nvim
Plug 'williamboman/mason.nvim'
Plug 'williamboman/mason-lspconfig.nvim'
Plug 'neovim/nvim-lspconfig'
Plug 'williamboman/nvim-lsp-installer'
else
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Expand Down Expand Up @@ -136,27 +138,31 @@ Plug 'petobens/poet-v', {'for': 'python'}
" Solidity
Plug 'tomlion/vim-solidity'

" Terraform
Plug 'hashivim/vim-terraform'

" Go (order matters?)
let has_go = system("which go")
if !v:shell_error && !(has('win32') || has ('win64'))
Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' }
Plug 'buoto/gotests-vim', { 'for': 'go' }
if has('nvim')
Plug 'mdempsky/gocode', {
\ 'for': 'go',
\ 'rtp': 'nvim',
\ 'do': '~/.vim/plugged/gocode/nvim/symlink.sh'
\ }
Plug 'zchee/deoplete-go', { 'for': 'go', 'do': 'make' }
Plug 'sebdah/vim-delve', { 'for': 'go' }
else
Plug 'mdempsky/gocode', {
\ 'for': 'go',
\ 'rtp': 'vim',
\ 'do': '~/.vim/plugged/gocode/vim/symlink.sh'
\ }
endif
endif
" let has_go = system("which go")
" if !v:shell_error && !(has('win32') || has ('win64'))
" " Fixme remove the update binaries step
" Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' }
" Plug 'buoto/gotests-vim', { 'for': 'go' }
" if has('nvim')
" Plug 'mdempsky/gocode', {
" \ 'for': 'go',
" \ 'rtp': 'nvim',
" \ 'do': '~/.vim/plugged/gocode/nvim/symlink.sh'
" \ }
" Plug 'zchee/deoplete-go', { 'for': 'go', 'do': 'make' }
" Plug 'sebdah/vim-delve', { 'for': 'go' }
" else
" Plug 'mdempsky/gocode', {
" \ 'for': 'go',
" \ 'rtp': 'vim',
" \ 'do': '~/.vim/plugged/gocode/vim/symlink.sh'
" \ }
" endif
" endif

" PHP
if !(has('win32') || has ('win64'))
Expand Down

0 comments on commit 904c3d0

Please sign in to comment.