diff options
Diffstat (limited to 'nvim')
-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 " |