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
34 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
19 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
0 answers
113 views

How to use coc-jedi to jump to definitions, and coc-pyright for everything else?

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
  • 297
1 vote
1 answer
58 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
583 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
62 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
105 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
19 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
77 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
52 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
184 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
554 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
126 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
72 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
88 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
312 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
0 votes
2 answers
889 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
569 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
0 votes
0 answers
161 views

How to tab autocomplete in command-line and search using CoC?

How can I have autocompletion in the colon command-line and during / search just as autocomplete works in my buffers?
theonlygusti's user avatar
  • 2,229
1 vote
1 answer
223 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
978 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
408 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
337 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
97 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
  • 649
0 votes
1 answer
1k 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
39 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
1 vote
1 answer
691 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
  • 649
1 vote
1 answer
126 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
557 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
706 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
634 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
592 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
78 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
  • 649
0 votes
1 answer
427 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
151 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
1 vote
1 answer
1k 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
  • 57
1 vote
1 answer
527 views

neovim lsp configuration

I'm a begginer 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
  • 133
0 votes
1 answer
2k 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
  • 649
0 votes
0 answers
577 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. ...
transient_loop's user avatar
0 votes
0 answers
62 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
3 votes
1 answer
1k views

Create highlight group that modifies an existing one

I would like to create a new highlighting group that is exactly like an existing one except for one (or more) properties. For example, the new group could be an underlined version of the existing one. ...
mtvec's user avatar
  • 131
0 votes
0 answers
262 views

How can I config vim to show me value of a variable / const?

I have a vim configuration with COC installed where I can gd to jump to a definition. How can I config it, so it will, upon hovering on the word (with cursor, not mouse), will do the following: if is ...
CIsForCookies's user avatar
4 votes
1 answer
818 views

Validate and autocomplete JSON by schema

I've got a project with some relatively complicated .json file structure, and it's kind of pain to recall this structure, when I always need to reference another files to do it right. So I try to ...
MadBrozzeR's user avatar
0 votes
0 answers
69 views

How can I end up in not visual mode after Coc inserts code?

I am using Coc through vim-plug in Neovim. Coc allows the use of so-called code actions, which, when triggered, allows different Coc plugins to do stuff. For instance, when writing Rust, coc-rust-...
Arthur's user avatar
  • 101
1 vote
1 answer
876 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 ...
thisisrandy's user avatar