From 92b2bfc758d0b4a1dd7b4bc911a4ce1d9b5609a8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 3 Mar 2019 21:11:50 +0100 Subject: Add basic language client config --- pkgs/custom-neovim/asset/rc.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/custom-neovim/asset/rc.vim b/pkgs/custom-neovim/asset/rc.vim index eebe6b4..5b1cac5 100644 --- a/pkgs/custom-neovim/asset/rc.vim +++ b/pkgs/custom-neovim/asset/rc.vim @@ -128,3 +128,17 @@ let g:localvimrc_persistent = 2 let g:wordmotion_prefix = '' nmap w + +" spinning up a language client only makes +" sense if such a client is available +if executable('cquery') + let g:LanguageClient_serverCommands = { 'cpp': ['cquery'] } + let g:LanguageClient_hoverPreview = "Never" + + set completefunc=LanguageClient#complete + set completeopt-=preview + + inoremap + " allow completion selection via CR without inserting a new line + imap pumvisible() ? "\" : "\" +endif -- cgit v1.2.3