improve python lsp config

This commit is contained in:
sfigato 2024-06-22 23:15:05 +02:00
parent 7db485bfaa
commit cfd2f9f786
Signed by: blallo
GPG Key ID: C530464EEDCF489A

View File

@ -28,7 +28,7 @@ let g:LanguageClient_serverCommands = {
\ }, \ },
\ 'elixir': ['/usr/lib/elixir-ls/language_server.sh'], \ 'elixir': ['/usr/lib/elixir-ls/language_server.sh'],
\ 'elm': ['/usr/bin/elm-language-server'], \ 'elm': ['/usr/bin/elm-language-server'],
\ 'python': ['/usr/bin/pyls'], \ 'python': ['/usr/bin/pylsp'],
\ 'go': ['/usr/bin/gopls'], \ 'go': ['/usr/bin/gopls'],
\ 'promql': ['/usr/local/bin/promql-langserver'], \ 'promql': ['/usr/local/bin/promql-langserver'],
\ 'java': ['/usr/bin/java-language-server'], \ 'java': ['/usr/bin/java-language-server'],
@ -41,6 +41,7 @@ let g:LanguageClient_rootMarkers = {
\ 'typescript': ['package.json'], \ 'typescript': ['package.json'],
\ 'typescriptreact': ['package.json'], \ 'typescriptreact': ['package.json'],
\ 'rust': ['Cargo.toml'], \ 'rust': ['Cargo.toml'],
\ 'python': ['pyproject.toml', 'setup.cfg'],
\ } \ }
let g:LanguageClient_hoverPreview = 'always' let g:LanguageClient_hoverPreview = 'always'