coq_nvim icon indicating copy to clipboard operation
coq_nvim copied to clipboard

Autocompletion is not aware of my custom type's members

Open KRC2000 opened this issue 2 years ago • 2 comments

I am just starting out with using neovim and this plugin, please help me. I installed coq_nvim, its working, all is good but one thing. I created a simple c++ program, there is a custom class "Meal" with a public variable "calories". When I type "." after a object name, I want to see suggested all the members of that object, in my case "calories" variable, but it is not happening. Is that possible with this plugin? Can I achieve that? Thanks.

Here is what I see when I hit <c-space> image

KRC2000 avatar May 24 '23 14:05 KRC2000

It's a lot to unpack here. Have you configured any LSP Server (like ccls) to work with your C++ project? If not I suggest you to take a look at nvim-lspconfig first.

Coq_Nvim does not analyze your code base it just queries multiple source of completion (like LSP, Treesitter an so on)

TaPO4eg3D avatar May 26 '23 08:05 TaPO4eg3D

It's a lot to unpack here. Have you configured any LSP Server (like ccls) to work with your C++ project? If not I suggest you to take a look at nvim-lspconfig first.

Coq_Nvim does not analyze your code base it just queries multiple source of completion (like LSP, Treesitter an so on)

No, I did not, I will look into it, thank you!

KRC2000 avatar May 26 '23 10:05 KRC2000