nVim 禁用 coc 插件的错误检测

发布于 2025-01-13 01:27:51 字数 367 浏览 2 评论 0原文

我使用 neovim 和 coc.nvim 来自动完成代码,但我不喜欢这种错误检测 [我并不是说它不好],我只想禁用这个灰色,就像红色 >> 位于行号左侧 (红线数字没问题)

在此处输入图像描述


How can I disable it,
  • 就像一行代码,可以将其添加到 .vimrc 或 .init.vim 中,这将完成
  • 我想要的工作...

I use neovim with coc.nvim for auto-completion of code, but I don't like this error detection [I don't mean its bad], I only want to disable this grey like with red >> on the left of line numbers
(no problem with red line numbers)

enter image description here


How can I disable it,

  • like a line of code Which can be added to .vimrc or .init.vim which will do the job
  • that's what I want...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望她远 2025-01-20 01:27:51

将其放入您的 init.vim 文件中:

let b:coc_diagnostic_disable=1

如果错误检测仍然存在,请编辑您的 coc-settings.json 文件,它位于您的 的同一位置init.vim 通常在 ~/.config/nvim 处,添加以下行:

{
  "diagnostic.enable": false
}

put this in your init.vim file:

let b:coc_diagnostic_disable=1

if the error detection still present, edit your coc-settings.json file, it's located on the same location of your init.vim usually at ~/.config/nvim, add this line:

{
  "diagnostic.enable": false
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文