Questions tagged [coc.nvim]

GitHub Links

Online Chat

https://gitter.im/neoclide/coc.nvim

103 questions
1
vote
0 answers

In vim plugin CoC, how to change coc-clangd source priority?

How to change coc-clangd source priority? I use vim conqueror of completion with language server client coc-clangd as autocompletion source and I would like to lower its priority from 99 to 70. I cannot find how to do in the doc. I tried the…
Robert
  • 171
  • 9
1
vote
1 answer

Auto format and indent code based on the file extension with different formaters in nvim

I have a plugin that autosaves the file. This plugin has hooks like .hook_before_saving etc. Here is an example: local autosave = require("autosave") autosave.hook_before_saving = function () if then vim.g.auto_save_abort =…
user12601679
1
vote
0 answers

CoC-clangd for .m files

I want to contribute to a project which uses objc heavily. As I am not a mac user I cannot use Xcode for this project. So I looked for solutions and found that vim has a code completion plugin (CoC) which should support objc via CoC-clangd. I think…
1
vote
1 answer

nVim disable error detection of coc plugin

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) How can I…
ANDuser
  • 71
  • 8
1
vote
1 answer

How to triger clnagd.switchSourceHeader using built-in nvim lsp

I used to do it with Coc.nvim :CocCommand clangd.switchSourceHeader But now I have moved to built-in nvim lsp and haven't any idea how to the same. I found this solution for coc, but still dont how to do this for nvim lsp. execute 'edit'…
1
vote
1 answer

How to select the code prompted by nvim ,and jump to the prompted document

I'am using the coc-rust-anaylzer plugin Now the problem is I can only see the a prompt, but I don't know how to select the options he gives me, I have tried enter, which only breaks the line and doesn't select it,I have also tried the tab key, and…
Cyberlin
  • 195
  • 5
1
vote
1 answer

nvim with coc and formatting for python

I've been trying to move to nvim as my code editor, but I've been having issues with using the code formatting. For now I want to set it up for python and every time I tried to perform a format operation, I get the following error: [coc.nvim]:…
0x4ndy
  • 1,216
  • 1
  • 12
  • 25
1
vote
2 answers

vim-go with coc.nvim: how to rename a package?

I have a file work.go opened in vim-go. It's in package oldpackagename. I want to refactor and rename it to newpackagename. Is there some tooling for that? The reason is, the initial assumptions for oldpackagename do not apply anymore. I know I can…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
1
vote
0 answers

how to build compile_commands.json for arm project

I'm using coc.nvim/coc-clangd in vim to read my project source code. I see that clanged can work if the compile_commands.json is provided to clanged. I can compile the project in my ubuntu env with armcc, so I try to use bear to make…
1
vote
1 answer

How do I change the path of pylint in coc.nvim?

I am using the CoC extension in Neovim. When I import some python modules I have installed, pylint shows an error, as if they were not installed, even though they are. I know this because the file executes correctly (and I installed them…
gxp2
  • 149
  • 2
  • 11
1
vote
3 answers

Python and Nvim: How to activate both global and local virtual env at the same time

I'm using coc-pyright in Nvim and running into some issues. Firstly, in Nvim, running :checkhealth results in the following error message: ## Python 3 provider (optional) 42 - WARNING: No Python executable found that can `import neovim`. Using…
Devildude4427
  • 892
  • 1
  • 8
  • 28
1
vote
1 answer

CoC: Diagnostic window takes over screen

I am setting up neovim, with CoC. It seems to work well, but with one big problem: My diagnostic windows are very large I am not sure why this is. I would expect this to be only a few lines. Ideally, it should show up somewhere not directly over…
Stepan Parunashvili
  • 2,627
  • 5
  • 30
  • 51
1
vote
1 answer

Cannot use auto-completion function in coc.nvim

Whenever I enter a certain auto-completion suggestions from coc.nvim, it just flashes the suggestion and removes it entirely and it throws an error 'coc.nvim: command not found'. The suggestion tab shows normally and acts normally. This bug always…
niceloaf
  • 11
  • 1
1
vote
1 answer

I want to know :CocSearch /pattern/ -A

I use Neovim with Plugin Coc when I use :CocSearch /some pattern/ with option -A with that command, It opens Search results about files of directory For example :CocSearch /some pattern/ -A 20 I want to know "-A and number" option…
devstefancho
  • 2,072
  • 4
  • 17
  • 34
1
vote
1 answer

Why does NeoVim, Coc, Jedi, Mypy, ... generate some_name.py.[git hash].py files?

I have a rather basic NeoVim setup with Coc for working with Python files. My Coc config looks like this: { "python.setLinter": ["mypy"], "python.linting.enabled": false, "python.linting.mypyEnabled": true, "python.formatting.provider":…
Achim
  • 15,415
  • 15
  • 80
  • 144