Add python language server and use the LanguageClient shortcuts
This commit is contained in:
parent
6541f6bb4b
commit
2eb62fb72b
|
@ -33,11 +33,12 @@ set completeopt=noinsert,menuone
|
||||||
let g:LanguageClient_serverCommands = {
|
let g:LanguageClient_serverCommands = {
|
||||||
\ 'haskell': ['hie-wrapper', '--lsp'],
|
\ 'haskell': ['hie-wrapper', '--lsp'],
|
||||||
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
|
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
|
||||||
\ 'c': ['cquery'],
|
\ 'c': ['clangd'],
|
||||||
\ 'crystal': ['scry'],
|
\ 'crystal': ['scry'],
|
||||||
\ 'cpp': ['cquery'],
|
\ 'cpp': ['clangd'],
|
||||||
\ 'javascript': ['javascript-typescript-stdio'],
|
\ '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:deoplete#enable_at_startup = 1
|
||||||
let g:LanguageClient_diagnosticsDisplay = {
|
let g:LanguageClient_diagnosticsDisplay = {
|
||||||
|
@ -49,4 +50,7 @@ let g:LanguageClient_rootMarkers = {
|
||||||
\ 'haskell': ['.git'],
|
\ 'haskell': ['.git'],
|
||||||
\ 'elm': ['elm.json'],
|
\ 'elm': ['elm.json'],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
colorscheme nord
|
colorscheme nord
|
||||||
|
nmap K :call LanguageClient_contextMenu()<CR>
|
||||||
|
nmap ? :call LanguageClient_textDocument_hover()<CR>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user