Questions tagged [coc.nvim]
103 questions
2
votes
1 answer
Make `coc-python` and `jedi` autocomplete modules installed in a virtual environment
With the usual coc.nvim + coc-python + jedi setup NeoVim should use system Python modules to run its own plug-ins but Jedi should be able to autocomplete Python modules installed in the active virtual environment. How do I set it up?
I've globally…

cprn
- 1,561
- 1
- 19
- 25
2
votes
1 answer
How to manually(without keybindings) search a symbol in a source code using coc-clangd/coc-nvim?
I use neovim and coc-clangd for C/C++ programming. Every thing is ok and i can jump through definitions and search references of a symbol in all of my project files by holding the cursor on the symbol and use the gr keybinding for calling the…

AMIR REZA SADEQI
- 409
- 2
- 5
- 13
2
votes
0 answers
List of VSCode javascript/typescript suggestionActions
VSCode/coc-tsserver suggest code actions. According to answers in this post, you can disable these. There are a few I find annoying, so I wanted to disable them, but I don't want to inadvertently disable useful features. Is there a list of all…

nullromo
- 2,165
- 2
- 18
- 39
2
votes
1 answer
how to program in C with lib gtk in vim with coc-clangd?
I copied the "Hello world" code from the website of the GTK project and pasted it into Vim with the environment to develop in C properly configured with coc-clangd. However, several errors are shown in the
#include
But when I send…

Lucas Martins Soares
- 165
- 1
- 12
2
votes
1 answer
Create Command to Fix Indentation
I am familiar with the = filter. == key sequence indents the current line, while gg=G indents the entire file. I am trying to create a command:FixIndentation to get a similar effect, to fix indentation in the entire file.
# vim documentation…

Aundre
- 383
- 4
- 7
2
votes
0 answers
is it possible to use coc.nvim extensions behind a firewall?
In my case, I am trying to use coc-clangd at work where we have a firewall, preventing access to external resources (like github). There is however a way to have a local mirror of github repos. This is where i have copies of coc.nvim and…

ambushed
- 533
- 1
- 5
- 14
2
votes
1 answer
How to create coc nvim custom snippets
By following this guide, I could get a simple snippet working.
" vim source for emails
function! coc#source#email#init() abort
return {
\ 'priority': 9,
\ 'shortcut': 'Email',
\ 'triggerCharacters': ['@']
…

s1n7ax
- 2,750
- 6
- 24
- 53
2
votes
2 answers
C# LSP autocompletion client for neovim / vim8
I've tried several ways to make it work but there seems to be no easy way. Yes, there are a ton of plugins, configurations. But they do not work right as per Oct 2019.
OmniSharp-Vim client needs configuration, it covers only C# and it lists plugins…

Artyom
- 3,507
- 2
- 34
- 67
1
vote
1 answer
coc.nvim Server clangd failed to start: Error: spawn UNKNOWN issue -4094
so my issue is I installed neovim and nodejs and coc.nvim in windows
I want to set it up for c++ and I did everything it asked
but when I open cpp files I got an error message like : Server clangd failed to start: Error: spawn UNKNOWN
here is the…

Erfan_khabir
- 11
- 1
1
vote
1 answer
I had an error on downloading Autopep8 when typing the command: Cocinstall Autopep8
My vim plug:
call plug#begin()
Plug 'tell-k/vim-autopep8'
Plug 'plasticboy/vim-markdown'
Plug 'sheerun/vim-polyglot'
Plug 'jiangmiao/auto-pairs'
Plug 'ap/vim-css-color'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug…

Bùi Tiến Hòa
- 11
- 3
1
vote
1 answer
Cannot find module with coc-tsserver (ts2307)
I am using NeoVim with CoC for TS development of yarn-3 pnp-enabled project. At some point the editor stopped seeing imports and started complaining that the imported module does not exist. (see screenshot).
I already configured SDK for vim and…

user4756260
- 71
- 6
1
vote
0 answers
coc.vim failing with :checkhealth command
I'm trying to setup coc for nvim on my Windows os. I installed coc via vim-plug and have the coc.nvim config sourced in my main init.vim file. I recieve these messages when I open neovim and run :checkhealth
coc: health#coc#check …

tre3iii
- 11
- 1
1
vote
0 answers
ERROR 117 on nvim when i press "tab" in insert mode
I'm installing some plugins and mapping some shortcuts on my init.vim file, the thing is that when I press the "tab" button on my keyboard in insert mode the program shows me this, in insert mode the tab doesn't work but in normal mode tab works…

Ferran Rojas
- 11
- 2
1
vote
3 answers
How to convert this viml autocommand into .lua config for neovim?
au FileType python let b:coc_root_patterns = ['.git', '.env', 'venv', '.venv', 'setup.cfg', 'setup.py', 'pyrightconfig.json']
I guess not many people using this config with neovim.

Mario Black
- 21
- 5
1
vote
0 answers
ESLint autofix is not working with coc.nvim
When running eslint --fix locally the files get formatted with no problem. However when saving a file within neovim with autocmd BufWritePre *.js,*ts,*tsx :CocCommand eslint.executeAutofix or by running :CocCommand eslint.executeAutofix inside vim,…

정지승
- 43
- 4