diff --git a/coc-settings.json b/coc-settings.json index 22b60d3..4cf6e80 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -37,7 +37,74 @@ // custom config path //"args": ["-c", "/home/jule/.config/efm-langserver/config.yaml"], "filetypes": ["vim"] - } + }, + "python": { + "command": "python", + "args": [ + "-mpyls", + "-vv", + "--log-file", + "/tmp/lsp_python.log" + ], + "trace.server": "verbose", + "filetypes": [ + "python" + ], + "settings": { + "pyls": { + "enable": true, + "trace": { + "server": "verbose" + }, + "commandPath": "", + "configurationSources": [ + "pycodestyle" + ], + "plugins": { + "jedi_completion": { + "enabled": true + }, + "jedi_hover": { + "enabled": true + }, + "jedi_references": { + "enabled": true + }, + "jedi_signature_help": { + "enabled": true + }, + "jedi_symbols": { + "enabled": true, + "all_scopes": true + }, + "mccabe": { + "enabled": true, + "threshold": 15 + }, + "preload": { + "enabled": true + }, + "pycodestyle": { + "enabled": true + }, + "pydocstyle": { + "enabled": false, + "match": "(?!test_).*\\.py", + "matchDir": "[^\\.].*" + }, + "pyflakes": { + "enabled": true + }, + "rope_completion": { + "enabled": true + }, + "yapf": { + "enabled": true + } + } + } + } + } }, "coc.preferences.hoverTarget": "float", "suggest.floatEnable": true diff --git a/vimrc b/vimrc index 4b7cc7a..310f6d2 100644 --- a/vimrc +++ b/vimrc @@ -84,7 +84,7 @@ Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile', 'for': [' " Plug 'neoclide/coc-rls', {'do': 'yarn install --frozen-lockfile', 'for': ['rust']} Plug 'fannheyward/coc-rust-analyzer', {'do': 'yarn install --frozen-lockfile', 'for': ['rust']} Plug 'neoclide/coc-prettier', {'do': 'yarn install --frozen-lockfile', 'for': ['haskell', 'rust', 'sh']} -Plug 'neoclide/coc-python', {'do': 'yarn install --frozen-lockfile', 'for': ['python']} +" Plug 'neoclide/coc-python', {'do': 'yarn install --frozen-lockfile', 'for': ['python']} "Plug 'neoclide/coc-vetur', {'do': 'yarn install --frozen-lockfile', 'for': ['haskell']} Plug 'neoclide/coc-json', {'do': 'yarn install --frozen-lockfile', 'for': ['json']} " Plug 'neoclide/coc-eslint', {'do': 'yarn install --frozen-lockfile', 'for': ['']}