kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

C++ header files not found

Open droynvoss opened this issue 2 years ago • 1 comments

Describe the bug C++ header files such as <iostream> not found.

To Reproduce Steps to reproduce the behavior:

  1. Install clangd on an Ubuntu (or derivative) distribution. (Using apt install clangd)
  2. Uncomment clangd = {} in the init.lua.
  3. Edit a .cpp file and add some header files.
  4. Error shown as follows: image

Desktop (please complete the following information):

  • OS: Pop!_OS
  • Terminal: gnome-terminal

Neovim Version

  • Output of running :version from inside of neovim:
NVIM v0.9.0-dev-635+gc19bd47c0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by dipper@pop-os

droynvoss avatar Feb 22 '23 02:02 droynvoss

Any luck so far?

nicolas-mateo avatar Feb 26 '23 16:02 nicolas-mateo

I think you need compile_commands.json to fix that error.

Alexis12119 avatar Mar 03 '23 22:03 Alexis12119

Any ways to not having compile_commands.json but rather pass the include path to clangd argument from the .lua setup file?

vzsky avatar Mar 29 '23 04:03 vzsky

Same issue here, any suggestions?

Problem

image

LSP info

image

Corgile avatar Mar 31 '23 02:03 Corgile

Duplicate of #238

feoh avatar May 15 '23 16:05 feoh