aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-02-15 23:26:03 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit4c8dbf4a790d58020977c8453392bcb34930af4c (patch)
treeabde240c54d09da06312b22bc941ea71c4536b3c
parentd2aa8d3857d7c169c240e2d9d57864fc6561fcad (diff)
downloaddotnvim-4c8dbf4a790d58020977c8453392bcb34930af4c.tar.gz
dotnvim-4c8dbf4a790d58020977c8453392bcb34930af4c.zip
Python: LSP + mypy + black
-rw-r--r--lsc.vim15
1 files changed, 13 insertions, 2 deletions
diff --git a/lsc.vim b/lsc.vim
index f04a38b..5c6abd8 100644
--- a/lsc.vim
+++ b/lsc.vim
@@ -1,9 +1,20 @@
" vim-lsc configuation
"
+" req:
+" - python-lsp-server
+" - pylsp-mypy
+" - python-lsp-black
+"
+" ensure yapf and autopep8 is not installed so black works
+"
let g:lsc_server_commands = {
\ 'python': {
- \ 'command': 'pyls',
- \ 'suppress_stderr': 1
+ \ 'command': 'pylsp',
+ \ 'suppress_stderr': 0,
+ \ 'workspace_config': {
+ \ 'pylsp.plugins.pylsp_mypy.enabled': 1,
+ \ 'pylsp.plugins.pylsp_mypy.live_mode': 0
+ \ }
\ },
\ 'haskell' : {
\ 'command': 'haskell-language-server-wrapper --lsp',