This commit is contained in:
Thomas Gideon 2018-01-04 12:58:23 -05:00
parent bf221f4d06
commit b4163b14de
3 changed files with 13 additions and 0 deletions

10
lsp.vim Normal file
View file

@ -0,0 +1,10 @@
set hidden
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ }
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>
nnoremap <silent> S :call LanguageClient_textDocument_documentSymbol()<CR>

View file

@ -43,6 +43,8 @@ Plug 'valloric/youcompleteme'
" groovy syntax and indent
Plug 'vim-scripts/groovy.vim'
Plug 'vim-scripts/groovyindent-unix'
" LSP
Plug 'autozimu/LanguageClient-neovim', {'tag': 'binary-*-x86_64-unknown-linux-musl'}
" All of your Plugins must be added before the following line
call plug#end() " required

1
vimrc
View file

@ -15,6 +15,7 @@ source fzf.vim
source mapping.vim
source jsonnet.vim
source racer.vim
source lsp.vim
exec "cd " . oldwd
" turn on file type plugins