Questions tagged [plugin-coc]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
36 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
66 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
57 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 ...
0
votes
1answer
32 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
46 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 ...
1
vote
1answer
112 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 ...
0
votes
0answers
23 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 ...
0
votes
1answer
266 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
82 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
74 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
56 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
785 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
1k 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
715 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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
114 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
118 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
0answers
28 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
194 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"...
1
vote
0answers
1k 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 ...