From 5b8b22dbd2abb085093bcccd3244cfa22a1e78ec Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 31 May 2020 20:04:16 +0200 Subject: [PATCH] vim: Add language client and rls support --- home/.config/nvim/init.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index e4f0cc4..0e8b0e1 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -69,6 +69,22 @@ Plug 'mechatroner/rainbow_csv' Plug 'posva/vim-vue', { 'for': 'vue' } Plug 'sirtaj/vim-openscad', { 'for': 'openscad' } +" Language Client +Plug 'autozimu/LanguageClient-neovim', { + \ 'branch': 'next', + \ 'do': 'bash install.sh', + \ } +set hidden + +let g:LanguageClient_serverCommands = { + \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'], + \ } + +nnoremap :call LanguageClient_contextMenu() + +" Multi-entry selection UI +Plug 'junegunn/fzf' + " LaTeX helpers Plug 'lervag/vimtex' let g:tex_flavor='latex'