From 2eb62fb72bce7c218f404fda2af6ff9585ec50c7 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 27 Jul 2019 21:53:56 -0700 Subject: [PATCH] Add python language server and use the LanguageClient shortcuts --- nvim/.config/nvim/init.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 86e12f0..94ab68c 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -33,11 +33,12 @@ set completeopt=noinsert,menuone let g:LanguageClient_serverCommands = { \ 'haskell': ['hie-wrapper', '--lsp'], \ 'rust': ['rustup', 'run', 'stable', 'rls'], - \ 'c': ['cquery'], + \ 'c': ['clangd'], \ 'crystal': ['scry'], - \ 'cpp': ['cquery'], + \ 'cpp': ['clangd'], \ 'javascript': ['javascript-typescript-stdio'], - \ 'elm': ['elm-language-server', '--stdio'] + \ 'elm': ['elm-language-server', '--stdio'], + \ 'python': ['python', '-m', 'pyls'] \ } let g:deoplete#enable_at_startup = 1 let g:LanguageClient_diagnosticsDisplay = { @@ -49,4 +50,7 @@ let g:LanguageClient_rootMarkers = { \ 'haskell': ['.git'], \ 'elm': ['elm.json'], \ } + colorscheme nord +nmap K :call LanguageClient_contextMenu() +nmap ? :call LanguageClient_textDocument_hover()