Update (n)vim for better autocompletion and add neovim symlink

This commit is contained in:
Tony Blyler 2019-04-23 21:26:35 -04:00
parent 9923a32ac4
commit add685765d
2 changed files with 25 additions and 2 deletions

View file

@ -15,14 +15,27 @@ call plug#begin($HOME.'/.nvim/plugged')
if s:uname == "Linux" if s:uname == "Linux"
" enforce python3 for distros like debian where python2 is the default " enforce python3 for distros like debian where python2 is the default
if has('python3') if has('python3')
Plug 'Valloric/YouCompleteMe', { 'do': 'python3 install.py --all' } " this enforces TSServer for javascript
Plug 'Valloric/YouCompleteMe', { 'do': 'python3 install.py --all; rm -rf ./third_party/ycmd/third_party/tern_runtime/node_modules' }
else else
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --all' } Plug 'Valloric/YouCompleteMe', { 'do': './install.py --all; rm -rf ./third_party/ycmd/third_party/tern_runtime/node_modules' }
endif endif
else else
" OSX is terrible about everything nice " OSX is terrible about everything nice
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --gocode-completer --racer-completer --tern-completer' } Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --gocode-completer --racer-completer --tern-completer' }
endif endif
let g:ycm_filetype_blacklist = {
\ 'go': 1,
\}
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
let g:deoplete#enable_at_startup = 1
Plug 'Chiel92/vim-autoformat' Plug 'Chiel92/vim-autoformat'
Plug 'Lokaltog/vim-easymotion' Plug 'Lokaltog/vim-easymotion'
@ -126,9 +139,18 @@ let g:go_highlight_build_constraints = 1
" Use goimports instead of gofmt for import paths " Use goimports instead of gofmt for import paths
let g:go_fmt_command = "goimports" let g:go_fmt_command = "goimports"
" Use golangci-lint instead of gometalinter for linting
let g:go_metalinter_command = "golangci-lint"
" Lint Go on save " Lint Go on save
let g:go_metalinter_autosave = 1 let g:go_metalinter_autosave = 1
" make sure errcheck is enabled for autosave
let g:go_metalinter_autosave_enabled = ['govet', 'golint', 'errcheck', 'deadcode', 'errcheck', 'gosimple', 'ineffassign', 'staticcheck', 'structcheck', 'typecheck', 'unused', 'varcheck']
" enable autocompletion for Go
call deoplete#custom#option('omni_patterns', { 'go': '[^. *\t]\.\w*' })
" Key mappings " Key mappings
" use FZF for control p " use FZF for control p
map <C-p> :FZF <CR> map <C-p> :FZF <CR>

View file

@ -0,0 +1 @@
../../../../.vim/autoload