For some reason Neovim is adding variable tags to my code. It's not breaking anything and it doesn't change the code at all, but it's annoying and too verbose (added an image link, see the highlighted parts).
https://i.sstatic.net/CU2CtNZr.png
I don't know what's causing this. I've tried to uninstall some plugins from my init.vim file like vim-prettier and nerdCommenter but it didn't change anything. Here are all my plugins:
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files
Plug 'prettier/vim-prettier'
Plug 'HerringtonDarkholme/yats.vim' " TS Syntax
Plug 'nanotech/jellybeans.vim'
Some extra info. The image of the code is in C++ and I'm using clangd for suggestions. Also, this is on Windows. My Neovim in Ubuntu works perfectly as usual.
Although I agree with Friedrich, hopefully I can set you on the right path.
You'll want to look into clangd
and how you have that configured. What you're seeing, these "variable tags" you're referring to are called inlay hints.
This can be configured differently depending on your LSP configuration and Neovim version
If you're using a Neovim version greater than v0.10.0
, this feature can be configured natively with Lua: https://neovim.io/doc/user/lsp.html#_lua-module:-vim.lsp.inlay_hint
For example
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
Looks like there is some discussion around that here. And here's an example of someone else running into the same issue:
Hope that helps!