Questions tagged [coc.nvim]

GitHub Links

Online Chat

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

103 questions
3
votes
0 answers

neovim: [coc.nvim]: UnhandledRejection: Pending response rejected since connection got disposed

my neovim have an error when i try to open a python file throws me: [coc.nvim]: UnhandledRejection: Pending response rejected since connection got disposed Error: Pending response rejected since connection got…
3
votes
1 answer

SDL2 begin_code.h file not found

I just started exploring with SDL 2 recently and downloaded libstl2-dev on Linux (I'm using Mint, if that matters). However, when I include the header #include , vim keeps telling me an error In included file: 'begin_code.h' file not…
Harry Zhou
  • 63
  • 3
3
votes
2 answers

How to scroll the hover area in Vim when showing documentation with coc.nvim

I can use K to show the man pages in Vim before I install the coc.nvim. And when I using the coc.nvim to do the same thing, instead of man pages, the documentation was in a hover are. But sometimes, the text cannot be displayed at one time, like…
3
votes
0 answers

Give the path for compile_commands.json file to coc-clangd

so I'm a developer working mostly with c using yocto/openembedded for developing our products. I'm trying to set up my nvim with coc-cland as an IDE, but having some problems. So what I want is to give languageserver the compile_commands.json file.…
Adam Nilsson
  • 31
  • 1
  • 2
3
votes
1 answer

coc.nvim: Open function or class definition in a new terminal tab

Most of the time I use the gd command then I have to browse the file manually in a new terminal tab, because I still need to leave open the previous file. It would be just a bit useful to be able to open the definition in a new tab, of course, I'm…
svelandiag
  • 4,231
  • 1
  • 36
  • 72
3
votes
1 answer

Auto select the first item from auto complete preview in COC vim?

Is there a way to make coc-vim to auto select the first preview suggestion instead of using the arrow key? I'm using vim 8.1.
Yousuf Azad
  • 33
  • 1
  • 6
3
votes
0 answers

Nvim: $VIRTUAL_ENV exists but appears to be inactive. This could lead to unexpected results

Using nvim and pyenv for my virtual environments. When I run :checkhealth I'm shown the following info for my Python 3 provider: ## Python 3 provider (optional) - INFO: pyenv: Path: /Users/bioround/.pyenv/libexec/pyenv - INFO: pyenv: $PYENV_ROOT is…
bioround
  • 375
  • 2
  • 12
3
votes
1 answer

vim-go completion stopped working after updating

I'm using neovim with coc.nvim and have been using vim-go and coc-go, and everything was working fine. I have the habit of updating everything every couple of days, and I do that using the following…
Farzad
  • 1,770
  • 4
  • 26
  • 48
3
votes
1 answer

neovim screen lagging when switching mode from insert to normal

I'm running neovim + coc + tmux in iTerm2. Sometimes I'm seeing the screen lag a lot, which leads to overlap content, such as the selected content and the status line... Not sure what's cause the issue, can you please help me understand how to debug…
Ian Zhang
  • 402
  • 3
  • 17
3
votes
2 answers

Neovim COC - "node is not executable"

(I am using ubuntu 18.04 WSL2 on the Windows 10 terminal emulator) Hello, i am having problems with coc on Neovim. The coc plugin is installed correctly (with vim-plug), but when i started nvim a massege would appear "node is not executable", so, i…
u_daba
  • 31
  • 1
  • 1
  • 5
2
votes
0 answers

gi , gy, gd, gr not working as expected for c++ on Ubuntu 22.04

the situations are the same as follows: https://github.com/neoclide/coc.nvim/issues/3497 On gd It seems to go to the header file declaration instead of the definition. On gy: [coc.nvim]: Error on "jumpTypeDefinition": typeDefinition provider not…
Skip Spur
  • 21
  • 2
2
votes
0 answers

Change order of coc nvim diagnostics to prioritize typescript over eslint?

I use coc-eslint and coc-tsserver but find it frustrating that eslint's errors always appear before tsserver's For instance this is a common error when I haven't imported Foo yet. [eslint @typescript-eslint/no-unsafe-call] [E] Unsafe construction of…
everett1992
  • 2,351
  • 3
  • 27
  • 38
2
votes
2 answers

Vim go to next search result and visually select it

So often if I have a code expression like points.length - 1 and I want to replace it with a variable (for example, named target_idx then I'll define the variable: int target_idx = points.length - 1; But now I want to go and replace all instances of…
beyarkay
  • 513
  • 3
  • 16
2
votes
0 answers

How to run commands/scripts outside of Nvim?

This is a rewrite of this question. For me this is a difficult question to put in words, please let me know if this is still unclear. I wish I could run scripts in NVIM like in VIM, by running scripts outside the editor and not in the internal NVIM…
Marcelo
  • 1,702
  • 2
  • 24
  • 42
2
votes
2 answers

How to remap coc.nvim autocomplete key?

I was trying to change my coc.nvim autocomplete key, and found this question in Stack Overflow, but the guy who answer this question doesn't explain really good how to customize it as you want, so I will explain it to help the NeoVim users that are…