Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [plugin-coc]

Intellisense engine for vim8 & neovim, full language server protocol support as VSCode

Filter by
Sorted by
Tagged with
1 vote
1 answer
124 views

coc.nvim build/index.js not found please install dependencies and compile coc.nvim by npm ci

how to fix this guys? its my first time to use nvim.. vscode is so laggy on my laptop
0 votes
1 answer
34 views

Neovim coc-html don't use auto-closing tag for macros?

I am using neovim and coc.vim for lsp. Also for html used coc-html. But i have an bug, when write or use macros, have 2 closing tags. How can i disable this behaviour? Thanks in advance.
2 votes
1 answer
559 views

Neovim lsp configuration

I'm a beginner in Vim/Neovim world. I understand that LSP is for autocompletion, auto import, signature info, etc... So I have installed coc.nvim. But I have some question about the concept : if I ...
0 votes
1 answer
206 views

(coc.nvim) error: Warning: The 'x' rule requires type information

I'm using coc.nvim for react (typescript) development. I have installed following coc plugins. coc-tslint-plugin coc-tsserver coc-prettier tslint integration is enabled for prettier in coc-settings....
0 votes
1 answer
153 views

Can I jump to implementation in a C project with coc-clangd?

I use NeoVim with coc-clangd. I have a project in C and I use vendor library SPL for STM8S chips. SPL library is in parent directory out of my project. This is my compile_flags.txt: -xc -std=c99 -Wall ...
1 vote
1 answer
368 views

How to use coc-jedi to help coc-pyright jump to pytest fixture definitions?

I really enjoy coc-pyright and use it all the time for everything. But it can't jump to Pytest fixture definitions, and there are no plans to include such a feature. Pyright doesn't include any ...
0 votes
1 answer
195 views

Prioritize TabNine autosuggestion over Intelephense with Coc

I am trying to configure TabNine and Intelephense with coc. I like the autosuggestions offered by TabNine. But Intelephense plugin is enabled, I am seeing suggestions from only Intelephense and not ...
0 votes
2 answers
509 views

coc.nvim: how to turn off the errors displayed inline?

I've just recently started using CoC.nvim for TypeScript development. Ideally I'd like the error to only be in the location list, which I have working as shown. The sign column and the location list ...
1 vote
0 answers
31 views

Neovim - coc-html keeps inner html head and body tags indented

When I create filename.html file and type enter after the html tag, coc-html keeps inner content of html tag indented: <html> <head> <title>test</title> </...
2 votes
1 answer
62 views

Navigate to the URL provided by a COC LSP exention's diagnostic output

The diagnostic popup for some of the COC LSP extensions include a URL to get more information about a particular error. For example, coc-sh shows this (invoked through a mapping that calls <Plug&...
1 vote
1 answer
228 views

Unable to install coc-clangd

When I use the command :CocInstall clangd to install coc-clangd, it will throw the following error: [Coc.nvim] Error on install coc-clangd: AggregateError Why do I get this error? OS: Archlinux ...
0 votes
2 answers
458 views

Conflicting suggestions on Coc.nvim with Prettier and ESLint

I am working in a team and none are using Vim. Most are use VS Code, and things are working fine for them. However, I have this problem: ticket.additionalNocs.forEach((additionalNoc) => nocs.push(...
1 vote
1 answer
836 views

How are formatters in CoC configured?

I have been using CoC for a few weeks now and I quite like it. Recently I started configuring the formatting options. I have put "coc.preferences.formatOnSave": true and configured .clang-...
2 votes
1 answer
3k views

How to use colored icons for autocomplete menu nvim.coc?

I am using neovim-qt for typescript react development. From last week I am configuring my neovim. I have configured coc.nvim which is giving pretty good autocompletion. I wanted to add icons for ...
0 votes
0 answers
30 views

Install coc.nvim on Raspberry Pi 4B on Pi OS

I have successfully installed vim and two plugins on my raspberry pi 4b with Pi OS (linux). But when I installed coc.nvim vim gave an error (error code 1) and then showed erratic behaviour. Am I doing ...
1 vote
1 answer
121 views

Is it possible to edit function definition box info with Coc + Vim?

When I am writing php code, I often create a comment before a function. This comment also includes the comments for a parameter. Like this: /** * This function finds cheese. * @param $mix is the ...
0 votes
2 answers
686 views

How to get similar completion from coc as ycm?

I've been user of YCM for years now. Recently discovered coc-vim and trying it out. Looks like it provides loads of additional features on top of what YCM has. One thing that I can't figure out how to ...
1 vote
1 answer
204 views

How to pin context in the top of the buffer window?

I was watching this video and at around 35 minutes the person shows a feature to display the current context in the top few lines. I tried searching for a plugin or a setting in coc or default nvim to ...
2 votes
1 answer
1k views

Insert Doxygen comments automatically

I use nvim with coc and clangd as the language server on a ubuntu 22.04 machine. I mainly use it to code in c++ when I code. What I want is to automatically generate doxygen style comments to describe ...
1 vote
1 answer
108 views

For Vim, and specifically coc.vim, is it idomatic to use `gd` to open a link?

I use coc.vim heavily and am a big fan of gD to go to a definition. Two questions: Is gD idiomatic vim, or more a coc thing? When I have links in markdown files to URLs, it feels natural to me to use ...
0 votes
1 answer
178 views

Colors for floating hint text arent readable; neovim + coc

I'm using Neovim (0.72), coc.nvim at latest release branch, and coc-tsserver also at latest. The issue I'm having is that I can't see the floating text for a code hint produced by vim-tsserver; It ...
0 votes
0 answers
15 views

Help me remove feature in NVim [duplicate]

I've just used NVim lately and install some plugins Plugin List And every function have some params name behind it . Anyone know where this comes from and how to remove it ? Thanks!
0 votes
0 answers
21 views

Shortcut keys sometimes type commands into the buffer for the file I am editing

I'm using gvim with the included mswin.vim keybindings, so Ctrl+S AKA C-S will save the buffer. It provides these mappings. " Use CTRL-S for saving, also in Insert mode (<C-O> doesn't work ...
0 votes
1 answer
84 views

coc-pyright is using buffers irresponsibly

I've been noticing that my buffer number increases really fast without me even using them. I rely on buffers quite a lot to switch between files, and it's really annoying when I open a second file and ...
1 vote
1 answer
65 views

Autocomplete opens in the wrong window

When using vim with coc installed, auto-complete is always opening and characters are being inserted into the window where the first auto-complete was displayed. I have a directory with two files (...
10 votes
3 answers
20k views

How to format files on save using black with neovim and coc

I'm trying to have python files format on save using black and neovim, with coc. Coc config I have the following coc config: { "coc.preferences.useQuickfixForLocations": true, "coc....
0 votes
1 answer
298 views

How do I get coc.nvim to auto-open?

I installed Plug 'neoclide/coc.nvim', {'branch': 'release'} And now I seem to be able to use <C-n> and <C-p> to trigger autocomplete menu but it doesn't show up automatically as I type. I ...
1 vote
1 answer
366 views

coc-pairs not working

I've followed the instructions at https://github.com/neoclide/coc-pairs to install the autopair extension for coc: :CocInstall coc-pairs After running this command, I get the following message: ...
2 votes
1 answer
562 views

What is the arrow notation in the start of some lines in Vim?

I was training in my Vim (gVim on Windows) that suddenly I saw this arrow notation ( >> ) in the start of some lines. When I oppend a javascript file, these appears to me. Do you know what are ...
3 votes
1 answer
166 views

What is the meaning of [LS] and other symbols in Vim completion menu?

I installed coc.nvim, vim-snippets and ultisnips for my snippets in my Vim (gVim on Windows). I don't know the meaning of [LS] , [B] , m, S and [S] in this picture. This picture shows part of my ...
0 votes
1 answer
98 views

How can I open MDN link in coc.css popup?

Sorry for my English. I installed coc-nvim plugin in my vim (gvim in windows) after that I insert CocInstall coc-css command for css snippets. In this picture I highlighted MDN Reference. How can I ...
0 votes
1 answer
551 views

How to suppress error message of autocmd command when the `silent` doesn't work?

I'm using Coc.vim and I've created an issue on their GitHub, but I'm not sure about whether this can be done by modifying the line I'm using: autocmd CursorHold * silent call CocActionAsync('doHover') ...
0 votes
0 answers
121 views

Coc Nvim automatically select all text between tags

I have mapped esc to < C-J> in .vimrc and whenever I try to go to normal mode after inserting some text inside any html tag using that mapping it selects all the character between that tag like ...
1 vote
2 answers
1k views

Neovim keep html tags indented in react/jsx files

When I edit a .html file I get this when pressing enter key: <div>|</div> <div> | </div> and while I edit a react file, the behavior is not what I was expecting: <div>...
1 vote
1 answer
285 views

How to remove definition In between lines by coc-nvim

I want to remove the inline definition that come like this (underline parts): These are coming due to coc-nvim and I don't want to see them. How can I get rid of them?
2 votes
1 answer
1k views

Automatically add parentheses to functions on Tab using coc.nvim autocompletion

I just started using coc.nvim with coc-pyright on Vim 8.2.5050. In the GitHub readme of the coc.nvim plugin, I found instructions to get autocomplete working with the Tab key. While this is working ...
1 vote
1 answer
1k views

How can I export a list of coc-extensions and install it on another machine?

I would like to make a file list of all my coc-extensions and afterwards install them in another vim environment. I am not able to save the output of the vim command :CocList extensions to a text file....
1 vote
1 answer
1k views

nvim: how to manually clear popups which do not clear themselves?

While it may not be the only culprit, coc.nvim is a bit notorious for leaving popups hanging around the screen long after they should be cleared. Sometimes, as in the gif below, dangling popups will ...
0 votes
1 answer
516 views

Disable coc diagnostic popups

How do I disable coc diagnostic popups (such as unused variable)? I have suggestions disabled with "suggest.autoTrigger": "none" but I'm struggling to figure out how to disable on-...
10 votes
6 answers
12k views

open coc-definition in new split in coc

I am using coc.vim in neovim. coc.vim suggests the following mapping for jumping to the definition of a class/method. nmap <silent> gd <Plug>(coc-definition) If there is only a single ...
1 vote
0 answers
378 views

coc-java server gets crashed

I'm trying to use vim and coc to work with java. I'm new on java language and this is confusing. I installed coc and node to use the coc-java server. Next I use CocConfig and write this to it: { &...
0 votes
1 answer
2k views

How to specify different tab widths for different languages? [duplicate]

I am using Neovim (v.0.8.0) along with nvim-lspconfig and neoclide/coc. It is working pretty well. The only problem being tab widths. If I am writing in say, Java or C, I use 4-space wide tabs, ...
0 votes
1 answer
216 views

coc.nvim - no rome found in your project root

I have the latest version of Ubuntu and recently installed vim. I'm trying to get coc.nvim to work. See https://github.com/neoclide/coc.nvim . This is an autocompletion package (and then some) for vim ...
3 votes
1 answer
2k views

nvim (plugged with coc, coc-clangd) is showing parameters for every function. How do disable it?

my nvim (plugged with coc + coc-clangd) is showing the paramters for every function, how do I disable it ? I'm using a common vimrc for vim and neovim, but this problem only happens in neovim. FILE *...
0 votes
0 answers
59 views

How can I enable html autocomplete in .tmpl files?

I'm editing .tmpl files which are mostly html with some template language syntax inside {{ double curly braces }}. I'm using COC for autocompletion and I want to be able to use the autocomplete ...
1 vote
2 answers
2k views

How do I link CoC to the correct Python interpreter?

I just installed Ubuntu linux on my laptop and made sure to install python. After installing Python, I type the command python3 --version and found that I got version 3.9.7, which is stored in the /...
2 votes
1 answer
922 views

Change the keys for accepting coc dropdown?

When I type in Vim, I get autocomplete from coc. To accept one of the items on the list I need to press Ctrly. I would like to change this button to Enter but I cannot figure out how to do so. I do ...
2 votes
1 answer
3k views

Correct way to setup python version for coc

I want to set PYTHONPATH and python interpreter according to projects I am working on. I am working both on projects involving python 2.0, and ones involving python 3.0. There is the concept of ...
2 votes
1 answer
168 views

How can I configure Vim to work with bitcoin core C++ code and have intellisense like functionality?

I installed Conquer Of Completion (COC) plugin and now I can edit C++ projects with Vim taking advantage of syntax highlighting, autocompletion, inline error messages, etc. But when I try to open ...
0 votes
0 answers
766 views

Coc.nvim doesn't work correctly

Yesterday, I installed coc.nvim in vim on windows. I remember that it showed up the suggestion tab. But today, I removed go and visual studio, then it didn't show up anymore. I tried to reinstall Go, ...