From 450cea46e25d4b14400e6ad912695b56664bd41a Mon Sep 17 00:00:00 2001 From: Oxbian Date: Fri, 30 Jun 2023 16:24:38 +0200 Subject: Updating LSP to working solution, need to check if all linter works & add keybinds / docu --- .vim/after/ftplugin/python.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .vim/after/ftplugin/python.vim (limited to '.vim/after') diff --git a/.vim/after/ftplugin/python.vim b/.vim/after/ftplugin/python.vim new file mode 100644 index 0000000..fe4ed31 --- /dev/null +++ b/.vim/after/ftplugin/python.vim @@ -0,0 +1,17 @@ +" Python + +let g:lsp_settings = {} +let g:lsp_settings['pylsp'] = + \ { + \ 'workspace_config': {'pylsp': { + \ 'configurationSources': ['flake8'], + \ 'plugins': { + \ 'flake8': {'enabled': v:true}, + \ 'mypy-ls': {'enabled': v:true, 'live_mode': v:false}, + \ 'pylint': {'enabled': v:true}, + \ 'pydocstyle': {'enabled': v:true}, + \ 'pyls_isort': {'enabled': v:true}, + \ 'black': {'enabled': v:true}, + \ } + \ }} + \ } -- cgit v1.2.3