Add rls
This commit is contained in:
parent
bf221f4d06
commit
b4163b14de
3 changed files with 13 additions and 0 deletions
10
lsp.vim
Normal file
10
lsp.vim
Normal 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>
|
2
plug.vim
2
plug.vim
|
@ -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
1
vimrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue