
Coc 对 python 语言的支持扩展怎么安装啊,看了下 wiki,有点迷糊,是我笨。
Example with python-language-server 代码如下:
"languageserver": { "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 } } } } } } 1 octalempyrean OP |
2 PTLin 2020-01-29 17:34:53 +08:00 不用 CocConfig 特意配置 ls,我直接安装完插件就能用了。 |
3 yuuko 2020-01-29 20:55:22 +08:00 via Android 配置文件是个 json,检查下格式对不对 |
4 luassuns 2020-01-30 14:27:01 +08:00 CocCofig 的 josn 最外面还要套一个 {} ,如果用了 coc-python 就不用配置 CocConfig 了。 |
5 octalempyrean OP @luassuns 嗯,如果配置 CocConfig 需要执行 CocInstall coc-python 么? |
6 yiningyang1228 2020-02-18 01:44:51 +08:00 可以试试在 CocConfig 只添加 ``` { "python.jediEnabled": false, } ``` ,然后直接 CocInstall coc-python。 |