Questions tagged [plugin-coc]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

How to change colour of reference counts next to definitions

I'm using CoC with the elm-language-server, and I've found that for each top level definition, at the end of the line I have an extra annotation printed that gives a reference count and whether it's ...
0
votes
0answers
17 views

How to display additional info for a completion option in second popup menu

The coc.nvim plugin has a really cool feature where the completion, or at least the python completion, will have additional information about the option in a second popup menu. I have looked through a ...
0
votes
0answers
19 views

Making clangd LSP recognizing GNU-specific headers

I have coc.nvim installed for autocompletion in vim. I usually include bits/stdc++.h(GNU-specific) in my files for competitive programming. I use the g++ compiler so I have no trouble there, but since ...
3
votes
1answer
54 views

Is there a way to toggle coc's linting?

I'd like to be able to turn it off when starting a new project and turn it back on when I have written more code.
0
votes
0answers
50 views

Getting LSP running for Julia using Coc-Plugin

so I'm trying to get LSP working for Julia using the CoC Plugin. It works for python or HTML. So I'm using: Coc-Plugin: https://github.com/neoclide/coc.nvim CoC-Extension (coc-julia): https://github....
1
vote
0answers
11 views

Signature pop-up describes dataclass as “The most base type”

I'm using coc-python for Python IDE-like features. If I define a dataclass I would expect the signature pop-up to show me which fields an instance of this class expects. Instead I get: MyClass() ------...
0
votes
0answers
29 views

why use coc and not only the single plugins providing code completion for a language

currently, I'm trying to wrap my head around the necessity of the coc plugin, since if I have it installed it still needs e.g. for LaTeX support the coc-vimtex plugin (which I get is necessary since ...
0
votes
0answers
25 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 ...
1
vote
1answer
22 views

How do I view the linting errors?

When editing a python file I get an error indicator (>>) at line 118 : This happened after I installed the coc-python plugin. I understand that this line fails some kind of linting setting ...
0
votes
0answers
17 views

clang_complete: No python support available

I have installed SpaceVim. My init.toml file looks as follows: #============================================================================= # dark_powered.toml --- dark powered configuration example ...
1
vote
1answer
156 views

Changing colour of pop-up coc.nvim lint warning in custom colourscheme

I'm using the colorscheme monokai and coc.nvim with pylint to lint Python code in Vim (terminal, not GUI, in terminal.app on macOS which I'm pretty sure has 256 colours). The linting pops up on a ...
0
votes
2answers
73 views

How to get emoji completion in markdown with `:<emoji>`, using neovim and coc

I'm sure that I've seen it so that one is able to use :<emoji and there's a pop up menu to select from, I can't seem to get this working though. I tried installing: https://github.com/junegunn/vim-...
1
vote
0answers
245 views

View pylint errors using coc and neovim

For the following code there is an error in the gutter, but I don't know how to view the actual message for it. Similarly here: In the bottom right of the editor are warnings and errors: But I don'...
1
vote
0answers
325 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
1answer
104 views

How to scroll down the output of coc help without using the mouse?

When coc prompts with information about what a class / function does there's help to the right, but if I want to scroll down within this help I have to use the mouse. I'm wondering if there's a nicer ...
0
votes
0answers
48 views

Why gd highlights instead of going to definition?

I've noticed the keymap nmap <silent> gd <Plug>(coc-definition) will highlight similar to nnoremap <leader>* :CocSearch <C-R>=expand("<cword>")<CR><CR&...
2
votes
1answer
79 views

View full (non-truncated) diagnostic error

I am using coc.nvim to get "intellisense" on my project. The diagnostic warnings & errors are great. However, sometimes those error messages are quite long, but the coc diagnostics ...
0
votes
0answers
478 views

coc-snippets not expanding/loading custom snippets

I've downloaded a bunch of custom snippets to ~/.custom/snippets/. My snippet files are named python.snippets, cpp.snippets, etc. I don't have ultisnips or any other snippet plugin installed, just coc....
0
votes
2answers
500 views

On opening a .js file, auto completion is working but an error message is showing on startup

When I'm opening my app.js file in the vim status bar following error is shown [coc.nvim] Failed to load the ESLint library for the document /mnt/d/js/my_take/js_sandbox/app.js Even though the ...
1
vote
1answer
40 views

How to highlight multiple words that are unrelated

I need to highlight multiple words that are unrelated, eg: aaa bbb ccc ddd I would like to highlight aaa and ddd, and keep cursor at both of those words, so when I try to change the word for example ...
1
vote
1answer
83 views

How to remap command based on buffer type?

I have coc.vim installed and added suggested mappings, then I installed vim-fugitive and I want to remap the "Toggle an inline diff of the file under the cursor." fugitive_= to Tab but the coc.vim is ...
2
votes
1answer
294 views

CoC Python reports unresolved import in git subfolder

I have a Python project in a subfolder within my git repo: .git api/ requirements.txt .venv/ myproj/ __init__.py foo.py bar.py The virtual environment is installed in the api ...
1
vote
1answer
80 views

Unmap <c-n> / <c-p> in completion menu to use as previous / next snippet placeholder with Coc

My completion mappings scheme with coc is the following: <c-@> (ctrl-space): trigger the menu / use the selected item (or the first one) <c-j> and <c-k>: navigate the list (or also ...
3
votes
1answer
1k views

Change color of CoC suggestion box

I successfully installed CoC in my Vim to have some code-suggestions/completions while coding in Rust. It works fine, but I want to change the color and basic looks of the suggestion box. I tried ...
1
vote
1answer
191 views

Configuring CoC — open suggestion-box with shortcut only

I successfully installed CoC in my Vim to have some code-suggestions/completions while coding in Rust. It works fine, but I want make the suggestion-box only show up when I press a key-shortcut (E.g ...
1
vote
1answer
191 views

Set CoC nodejs path dynamically

Currently for CoC I am setting the nodejs path like this: let g:coc_node_path = '/usr/local/.nvm/versions/node/v12.4.0/bin/node' But I want this variable to be set to the output of which node. How ...
0
votes
1answer
71 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 ...
2
votes
1answer
1k views

Multiple plugin managers [duplicate]

I found out that a plugin I really like doesn't support the plugin manager I like, So the question is, can I use multiple plugin managers at the same time with vim? If so, I think I can use another ...
4
votes
1answer
2k views

How can I hide and scroll popup window in coc.nvim in Vim?

How can I scroll and hide a floating window in Vim using the coc.nvim plugin? I added these mappings to my vim.rc file but I still cannot manage it. I would expect if I press ctrl+f once I have a ...
0
votes
0answers
1k views

coc not working in latest vim

I've installed coc following the instruction, using Vim-Plug (before that I did it without installing yarn and with kite still (partially) installed. I got a 'javascript file not found' error So I ...
3
votes
1answer
2k 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
votes
1answer
137 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....
2
votes
1answer
211 views

How to press ESC only once to close suggestions list and exit insert mode

When using CoC.nvim's suggestion list, I often find myself pressing Esc twice to return to normal mode - once for cancelling CoC's list session and once to actually exit insert mode. I find that ...
0
votes
1answer
52 views

What is the “stuck text” that happens on my screen as a byproduct of a plugin? How can I remove it?

When I'm using Vim in the terminal, I sometimes get stuff like this: The square bracket floating is what I'm talking about. When my autocompleter plugin stops completing, sometimes it "forgets" to ...
2
votes
0answers
213 views

(coc.nvim) RLS warning: …use crate_blacklist instead

I've got a warning on start: [coc.nvim] RLS configuration option use_crate_blacklist is deprecated: use crate_blacklist instead Probably I have to put into my coc-settings.json "rust.crate_blacklist"...
2
votes
1answer
2k 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 ...