diff --git a/coc-settings.json b/coc-settings.json index 3fc46bc..9091fbb 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -10,7 +10,7 @@ "coc-json", "coc-html", "coc-css", - "coc-python", + "coc-pylsp", "coc-clangd", "coc-rust-analyzer", "coc-yaml", @@ -23,10 +23,18 @@ "coc-markdownlint", "coc-vimlsp" ], - "pyright.enable": true, - "python.analysis.autoImportCompletions": true, - "python.analysis.autoSearchPaths": true, - "python.analysis.diagnosticMode": "workspace", + "pylsp.enable": true, + "pylsp.plugins.pycodestyle.enabled": false, + "pylsp.plugins.mccabe.enabled": false, + "pylsp.plugins.pyflakes.enabled": true, + "pylsp.plugins.pylint.enabled": false, + "pylsp.plugins.autopep8.enabled": false, + "pylsp.plugins.yapf.enabled": false, + "pylsp.plugins.jedi_completion.enabled": true, + "pylsp.plugins.jedi_hover.enabled": true, + "pylsp.plugins.jedi_references.enabled": true, + "pylsp.plugins.jedi_signature_help.enabled": true, + "pylsp.plugins.jedi_symbols.enabled": true, "rust-analyzer.enable": true, "rust-analyzer.cargo.loadOutDirsFromCheck": true, "rust-analyzer.procMacro.enable": true, diff --git a/lua/coc.lua b/lua/coc.lua index eeb6d2f..cebddb7 100644 --- a/lua/coc.lua +++ b/lua/coc.lua @@ -3,7 +3,7 @@ vim.g.coc_global_extensions = { 'coc-json', 'coc-html', 'coc-css', - 'coc-python', + 'coc-pylsp', 'coc-clangd', 'coc-rust-analyzer', 'coc-yaml',