Issue 63862
Summary definition goes to .h only and the definition in '.c' is not located until it is manually opened in nvim.
Labels
Assignees
Reporter weiyshay
    Hi,
I am using clangd as my LSP in neovim and it seems like that the definition goes to .h only and the definition in '.c' is not located until it is manually opened.

versions:
nvim: 0.8.3
clangd: 16.0.2

I search around and it seems that it's been resolved by replacing the 'compile_flags.txt' with 'compile_commands.json', while
I am still encountering this after that. 

Any idea on how to debug? The 'compile_commands.json' was generated using 'bear make' and seems good.
```  
#wc compile_commands.json
  4144330   4273816 126228837 compile_commands.json
```

Reference post:
https://neovim.discourse.group/t/clangd-lsp-jump-to-definition-takes-me-to-h-file/2153/1
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to