Add python language server and use the LanguageClient shortcuts

This commit is contained in:
Danila Fedorin 2019-07-27 21:53:56 -07:00
parent 6541f6bb4b
commit 2eb62fb72b
1 changed files with 7 additions and 3 deletions

View File

@ -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()<CR>
nmap ? :call LanguageClient_textDocument_hover()<CR>