108 questions
2
votes
1
answer
80
views
How to disable fillers in COC
I am using Clangd as LSP server.
"inlayHint.display": false and "clangd.arguments": ["--function-arg-placeholders=0"]" work to disable the placeholders in functions ...
7
votes
2
answers
4k
views
How to scroll the hover area in Vim when showing documentation with coc.nvim
I can use K to show the man pages in Vim before I install coc.nvim. And when I am using coc.nvim to do the same thing, instead of man pages, the documentation is in a hover. But sometimes, the text ...
3
votes
0
answers
135
views
How to configure language server to support JavaFX?
SOLUTION :
my bad it was a build.gradle problem, by removing 'org.javamodularity.moduleplugin' version 1.8.12 from it, coc-java worked again !! But thank you all for your help !
I am working with ...
5
votes
1
answer
4k
views
Give the path for compile_commands.json file to coc-clangd
so I'm a developer working mostly with c using yocto/openembedded for developing our products. I'm trying to set up my nvim with coc-cland as an IDE, but having some problems.
So what I want is to ...
9
votes
2
answers
23k
views
How to configure clangd to find missing external header file?
I am a novice user of clang tools and I am learning c/c++.
I have some code that is based on a framework that uses its data structure and build system ( OpenFOAM). I compiled the framework's ...
19
votes
3
answers
13k
views
How to change coc.nvim floating window colors?
I'm using coc.nvim plugin for C++ in my vim editor, here it's showing error but its colors hurt my eyes, I've been searching for solution but still don't know how to customize the colors
cocnvim ...
0
votes
3
answers
983
views
Neovim mason diagnostics not recognizing header files
I recently started using nvim and started playing with some plugins. I found Mason to be extremely useful. However, I find it bit annoying that Mason diagnostics complain about missing header files (...
0
votes
1
answer
138
views
robotframework_ls didn't detect local keywords with coc nvim
I'm using neovim with coc extension.
I add the robotframework_ls server for lsp.
My project is stored in the following directory:
/home/jchabrol/personaltools/robot
with the following tree:
keywords (...
6
votes
4
answers
7k
views
Python and Nvim: How to activate both global and local virtual env at the same time
I'm using coc-pyright in Nvim and running into some issues.
Firstly, in Nvim, running :checkhealth results in the following error message:
## Python 3 provider (optional)
42 - WARNING: No Python ...
1
vote
1
answer
372
views
Repeat with "." a motion plugin command mapped in lua throught keyset?
I use coc.nvim with the proposed default configuration that set (in a lua file) :
-- Use `[g` and `]g` to navigate diagnostics
-- Use `:CocDiagnostics` to get all diagnostics of current buffer in ...
2
votes
1
answer
695
views
coc-rust-analyzer does not have inlay type hint anymore
My current config
➜ cat ~/.config/nvim/coc-settings.json
{
"suggest.noselect": true,
"rust-analyzer.inlayHints.typeHints.enable": true,
"rust-analyzer.inlayHints....
0
votes
1
answer
845
views
Why pyright with coc.nvim not working after opening another file?
if I immediately open the file via nvim, then everything works, but if I first open, for example, the config, and after the python file, then pyright does not work
vim.cmd [[packadd packer.nvim]]
...
4
votes
1
answer
1k
views
SDL2 begin_code.h file not found
I just started exploring with SDL 2 recently and downloaded libstl2-dev on Linux (I'm using Mint, if that matters).
However, when I include the header #include <SDL2/SDL.h>, vim keeps telling me ...
0
votes
1
answer
96
views
Using :CocSearch for pattern with backslashes
How do I do a search through :CocSearch for anything containing backslashes?
i.e: Module\Auth
1
vote
1
answer
52
views
I had an error on downloading Autopep8 when typing the command: Cocinstall Autopep8
My vim plug:
call plug#begin()
Plug 'tell-k/vim-autopep8'
Plug 'plasticboy/vim-markdown'
Plug 'sheerun/vim-polyglot'
Plug 'jiangmiao/auto-pairs'
Plug 'ap/vim-css-color'
Plug 'preservim/nerdtree'
Plug '...
2
votes
1
answer
947
views
Cannot find module with coc-tsserver (ts2307)
I am using NeoVim with CoC for TS development of yarn-3 pnp-enabled project. At some point the editor stopped seeing imports and started complaining that the imported module does not exist. (see ...
0
votes
1
answer
276
views
How to expand coc.nvim incoming calls
In Coc.nvim, when I request document.showIncomingCalls, I get the tree with only one successor showing up with a + sign in its left like the following:
- f1
+ f2
How do I expand the + beside f2 to ...
3
votes
0
answers
1k
views
neovim: [coc.nvim]: UnhandledRejection: Pending response rejected since connection got disposed
my neovim have an error when i try to open a python file
throws me:
[coc.nvim]: UnhandledRejection: Pending response rejected since connection got disposed
Error: ...
6
votes
1
answer
3k
views
coc.nvim: Open function or class definition in a new terminal tab
Most of the time I use the gd command then I have to browse the file manually in a new terminal tab, because I still need to leave open the previous file.
It would be just a bit useful to be able to ...
0
votes
1
answer
35
views
How to solve the link error caused by broken lines?
I can't open a link completely. How can I solve it?
My_enviroment: neovim v0.6.1,coc.nvim,ubuntu22.04LTS
My mother tongue is not English, please understand the subtle grammatical errors.Thanks you!
I ...
2
votes
3
answers
5k
views
How to select first item in popup menu and close menu in a single keybind for autocomplete in nvim?
I'm using coc.nvim for autocomplete and when the popup menu appears, I'd like Tab to select the first item and close the menu. At the moment I've keybinded Tab to <C-n><CR>, but the <CR&...
1
vote
2
answers
2k
views
vim-go with coc.nvim: how to rename a package?
I have a file work.go opened in vim-go. It's in package oldpackagename.
I want to refactor and rename it to newpackagename. Is there some tooling for that? The reason is, the initial assumptions for ...
21
votes
3
answers
10k
views
Coc.nvim how to disable auto complete suggestions in markdown files?
I am trying to setup Neovim with Coc for writing markdown. I have Coc working with javascript and other file types.
What I am trying to do is disable the autocomplete suggestions only for markdown ...
0
votes
0
answers
215
views
Vim : chain a second command after the first one is done
I am trying to use Vim as my main IDE. For that, I installed vim-plug, and COC.
This allows me to call those two commands :
:CoCCommand tsserver.organizeImports
:CoCCommand prettier.formatCode
I ...
0
votes
1
answer
1k
views
How can i use neovim and coc.nvim for develop windows c++ apps on linux
I develop c++ apps on linux and i use neovim with coc.nvim and coc-clangd plugins.
I want to develop an app for windows but i comfort with linux and neovim so i want to use them for it. But i get some ...