Update neovim config
This commit is contained in:
parent
0f042e1f3f
commit
68613dd3e1
1 changed files with 30 additions and 1 deletions
|
@ -5,12 +5,16 @@ Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'sickill/vim-monokai'
|
Plug 'sickill/vim-monokai'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'tpope/vim-sensible'
|
|
||||||
Plug 'chrisbra/sudoedit.vim'
|
Plug 'chrisbra/sudoedit.vim'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
Plug 'vim-syntastic/syntastic'
|
Plug 'vim-syntastic/syntastic'
|
||||||
Plug 'fatih/vim-go'
|
Plug 'fatih/vim-go'
|
||||||
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
|
Plug 'zchee/deoplete-go', { 'do': 'make' }
|
||||||
|
Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' }
|
||||||
|
Plug 'rust-lang/rust.vim'
|
||||||
|
Plug 'racer-rust/vim-racer'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -71,6 +75,7 @@ let g:syntastic_javascript_checkers = ['eslint']
|
||||||
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
|
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
|
||||||
let g:syntastic_php_checkers = ['php', 'phpcs']
|
let g:syntastic_php_checkers = ['php', 'phpcs']
|
||||||
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
||||||
|
let g:syntastic_rust_checkers = ['rustc']
|
||||||
|
|
||||||
" vim-go
|
" vim-go
|
||||||
let g:go_highlight_functions = 1
|
let g:go_highlight_functions = 1
|
||||||
|
@ -80,3 +85,27 @@ let g:go_highlight_types = 1
|
||||||
let g:go_highlight_operators = 1
|
let g:go_highlight_operators = 1
|
||||||
let g:go_highlight_build_constraints = 1
|
let g:go_highlight_build_constraints = 1
|
||||||
let g:go_list_type = "quickfix"
|
let g:go_list_type = "quickfix"
|
||||||
|
|
||||||
|
" deoplete
|
||||||
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
let g:deoplete#sources#go#sort_class = ['package', 'func', 'type', 'var', 'const']
|
||||||
|
let g:deoplete#sources#go#package_dot = 1
|
||||||
|
let g:deoplete#sources#go#pointer = 1
|
||||||
|
let g:deoplete#sources#go#use_cache = 1
|
||||||
|
let g:deoplete#sources#go#json_directory = '~/.cache/deoplete/go'
|
||||||
|
let g:tern_request_timeout = 1
|
||||||
|
let g:tern_show_signature_in_pum = '0'
|
||||||
|
set completeopt+=noinsert
|
||||||
|
set completeopt+=noselect
|
||||||
|
set completeopt-=preview
|
||||||
|
" deoplete tab-complete
|
||||||
|
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||||
|
let g:deoplete#omni#functions = {}
|
||||||
|
let g:deoplete#omni#functions.javascript = [
|
||||||
|
\ 'tern#Complete'
|
||||||
|
\]
|
||||||
|
|
||||||
|
" vim-racer
|
||||||
|
set hidden
|
||||||
|
let g:racer_cmd = "~/.cargo/bin/racer"
|
||||||
|
let g:rustfmt_autosave = 1
|
||||||
|
|
Loading…
Reference in a new issue