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
user50775's user avatar
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.
serii 's user avatar
  • 91
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 ...
MarrekNožka's user avatar
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> </...
whiteman808's user avatar
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 ...
dpw's user avatar
  • 109
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&...
Pak's user avatar
  • 1,114
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 ...
Sam Ma's user avatar
  • 113
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 ...
ABM K's user avatar
  • 101
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 ...
LondonRob's user avatar
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 ...
FalcoGer's user avatar
  • 149
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 ...
FalcoGer's user avatar
  • 149
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 ...
Dave Kerr's user avatar
  • 115
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 ...
Scott's user avatar
  • 103
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!
Max's user avatar
  • 1
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 ...
interfect's user avatar
  • 163
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 ...
jmbeck's user avatar
  • 101
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 (...
Noah Callaway's user avatar
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 ...
hakunin's user avatar
  • 269
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 ...
mohamadi_arch's user avatar
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 ...
mohamadi_arch's user avatar
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 ...
mohamadi_arch's user avatar
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 ...
Anurag Yadav's user avatar
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: ...
adamgy's user avatar
  • 93
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>...
user44767's user avatar
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-...
matko031's user avatar
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?
Anurag Yadav's user avatar
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....
abu_bua's user avatar
  • 133
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-...
Aaron Parisi's user avatar
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: { &...
StandardIO's user avatar
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 ...
Vinn's user avatar
  • 781
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, ...
ABCDEF's user avatar
  • 3
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 ...
hermancain's user avatar
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 ...
Vinn's user avatar
  • 781
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 ...
Bitcoin_1o1's user avatar
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 ...
laur's user avatar
  • 159
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, ...
Anh Nguyen's user avatar
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 *...
prgbenz's user avatar
  • 131
0 votes
1 answer
762 views

Indent changes when using CoC, how do I stop this?

I have set up my init.vim file to always use tabs as indentation by adding this to it: set tabstop=4 set shiftwidth=4 set noexpandtab Ever since I installed CoC to use Rust's language server, it ...
Katie And's user avatar
0 votes
1 answer
677 views

how to accept tabnine suggestion?

I'm using tabnine and COC. I have a ~/.vimrc with the following lines: inoremap <expr> <C-j> pumvisible() ? "\<C-N>" : "j" ...
CIsForCookies's user avatar
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 ...
FAB's user avatar
  • 23
0 votes
0 answers
88 views

Clojure-lsp in vim - outdated message box doesn't go away?

I recently added the coc extension for clojure. When I opened Vim it asked me to install clojure-lsp from Github. I did that. Now, every time I open my nvim with a clojure file I get a warning to ...
Vinn's user avatar
  • 781
0 votes
1 answer
516 views

Slow down system when open nvim [closed]

When I open neovim, system slows down. Even neovim's itself. switching between buffers take one or two seconds. I think this is because of autocompletion system. I use Coc. When I run neovim, a ...
Reza Hosseinzadeh's user avatar
2 votes
1 answer
222 views

Autocomplete LateX citations in chapters directory

Currently writing my thesis using LateX, I'm trying to obtain autocomplete on my citations when writing the chapters. The directory structure is that each chapter has its own main.tex files (template ...
Jeanot's user avatar
  • 23
2 votes
1 answer
2k views

How can i use Enter to select item from popup menu?

I am using UltiSnippets let g:UltiSnipsExpandTrigger='<None>' let g:UltiSnipsJumpForwardTrigger = '<tab>' let g:UltiSnipsJumpBackwardTrigger = '<S-b>' let g:coc_snippet_next = '<...
serii 's user avatar
  • 91
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 ...
Hadock's user avatar
  • 143
0 votes
1 answer
3k views

How to set prettier indents?

I have set tabstop to 4. But when I use prettier, it defaults my indentations to 2 spaces. How do I change this? I am using the coc prettier extension. const thing = () => { var hi = 1; //...
Vinn's user avatar
  • 781
0 votes
0 answers
615 views

coc.nvim and formatSelected with golang not working

Getting this error message when running the shortcut: [coc.nvim]: Error on "formatSelected": formatRange provider not found for current buffer, your language server doesn't support it. ...
unsafe_where_true's user avatar
0 votes
0 answers
65 views

forced inserted ^Z in coc

I'm using the plugin coc for autocompletion. My problem is that when coc opens the pop up menu with the completion items and I continue typing then a ^Z character is inserted in the buffer as shown in ...
JangLuna's user avatar
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 /...
Jon's user avatar
  • 119
1 vote
1 answer
1k views

Problem with coc-clangd

I use coc and coc-clangd for C/C++. When I want to use gtk I get this message: When I compile the file with command below, the process completes successfully. gcc `pkg-config --cflags gtk+-3.0` -o ...
Reza Hosseinzadeh's user avatar