coc.nvim 是否需要 Python?
Does coc.nvim require Python?
installation instructions 没有提到需要 Python 或特定的 Python 插件。虽然当我将 coc.nvim 添加到我的 vim 插件 (Plug 'neoclide/coc.nvim', {'branch': 'release'}
)、安装并重新启动 Neovim 时,我收到以下错误:
[coc.nvim] Error on execute python script: request error nvim_command - Vim(pyxfile):E319: No "python3" provider found. Run ":checkhealth provider"
我是 VIM/Neovim 的长期用户,安装了相当多的插件,其中 none 对第 3 方 Python 脚本有任何依赖性,我想保持这种状态。
所以我的问题是,coc.nvim 需要 Python 还是我这边配置有误?
您正在使用 https://github.com/neoclide/coc-snippets ,它将加载和解析 Ultisnips 片段,一些片段需要 Python 到 运行.
您可以通过在 coc-settings.json.
中设置 "snippets.ultisnips.usePythonx": false
来禁用 Python
我在我的虚拟环境中使用 "snippets.ultisnips.usePythonx": false
和 运行 pip install neovim
解决了它。
我通过pip3 install --user pynvim
解决了
installation instructions 没有提到需要 Python 或特定的 Python 插件。虽然当我将 coc.nvim 添加到我的 vim 插件 (Plug 'neoclide/coc.nvim', {'branch': 'release'}
)、安装并重新启动 Neovim 时,我收到以下错误:
[coc.nvim] Error on execute python script: request error nvim_command - Vim(pyxfile):E319: No "python3" provider found. Run ":checkhealth provider"
我是 VIM/Neovim 的长期用户,安装了相当多的插件,其中 none 对第 3 方 Python 脚本有任何依赖性,我想保持这种状态。
所以我的问题是,coc.nvim 需要 Python 还是我这边配置有误?
您正在使用 https://github.com/neoclide/coc-snippets ,它将加载和解析 Ultisnips 片段,一些片段需要 Python 到 运行.
您可以通过在 coc-settings.json.
中设置"snippets.ultisnips.usePythonx": false
来禁用 Python
我在我的虚拟环境中使用 "snippets.ultisnips.usePythonx": false
和 运行 pip install neovim
解决了它。
我通过pip3 install --user pynvim