安装补全相关插件后,再次进入 neovim 时出错 #47
Answered
by
Trouvaille0198
Trouvaille0198
asked this question in
Q&A
-
|
在安装完以下插件后 -- 补全引擎
use("hrsh7th/nvim-cmp")
-- snippet 引擎
use("hrsh7th/vim-vsnip")
-- 补全源
use("hrsh7th/cmp-vsnip")
use("hrsh7th/cmp-nvim-lsp") -- { name = nvim_lsp }
use("hrsh7th/cmp-buffer") -- { name = 'buffer' },
use("hrsh7th/cmp-path") -- { name = 'path' }
use("hrsh7th/cmp-cmdline") -- { name = 'cmdline' }
-- 常见编程语言代码段
use("rafamadriz/friendly-snippets")重进 neovim,就会显示出错: 以下为错误信息 |
Beta Was this translation helpful? Give feedback.
Answered by
Trouvaille0198
Jun 25, 2022
Replies: 2 comments
-
|
我发现在安装其他插件时也会有这种问题发生,通常的情况是:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
破案了!是由于 git 拉取仓库时自动把 LF 转换成 CRLF 了(应该是我之前设置过),使用以下命令后,重新下载有问题的插件,就可以解决啦 // 提交时转换为 LF,检出 / 拉取代码时不转换
git config --global core.autocrlf input |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Trouvaille0198
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



破案了!是由于 git 拉取仓库时自动把 LF 转换成 CRLF 了(应该是我之前设置过),使用以下命令后,重新下载有问题的插件,就可以解决啦