From 4c8dbf4a790d58020977c8453392bcb34930af4c Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 15 Feb 2022 23:26:03 +0000 Subject: Python: LSP + mypy + black --- lsc.vim | 15 +++++++++++++-- 1 file 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', -- cgit v1.2.3