diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-19 16:00:46 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-19 16:00:46 +0200 |
commit | 67cdebd227d748c6dc281fdd24a2fee56534fb12 (patch) | |
tree | c287dfa35af634451a7f085487f0e3219d9b8b05 | |
parent | b0c3ec8e044915d16b3e719bbb181816349d4229 (diff) | |
download | dotfiles-67cdebd227d748c6dc281fdd24a2fee56534fb12.tar.xz |
nvim: Add LanguageClient and RLS
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nvim/init.vim | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index a67454e..0788450 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -16,6 +16,11 @@ Plug 'airblade/vim-rooter' " Fuzzy finder. Requires fzf package to be installed Plug 'junegunn/fzf.vim' +Plug 'autozimu/LanguageClient-neovim', { + \ 'branch': 'next', + \ 'do': 'bash install.sh', + \ } + " Better syntax highlighting Plug 'rust-lang/rust.vim' Plug 'tpope/vim-git' @@ -38,6 +43,13 @@ let g:lightline = { " Fzf let g:fzf_command_prefix = 'Fzf' +" Language Client +let g:LanguageClient_serverCommands = { + \ 'rust': ['rustup', 'run', 'nightly', 'rls'], + \ } +let g:LanguageClient_autoStart = 1 +nnoremap <silent> <Leader>f :call LanguageClient_textDocument_formatting()<CR> + """ " NVim settings @@ -98,7 +110,6 @@ augroup END autocmd VimResized * redraw! - """ " Mappings " |