Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Definitions in {project_root}/cmake/XYZ.cmake #54

Open
3ddiddE opened this issue Jul 6, 2022 · 2 comments
Open

Detect Definitions in {project_root}/cmake/XYZ.cmake #54

3ddiddE opened this issue Jul 6, 2022 · 2 comments

Comments

@3ddiddE
Copy link

3ddiddE commented Jul 6, 2022

I am using the coc.nvim client and I have a CMakeLists.txt which includes a helper.cmake (e.g. include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CMakeHelper.cmake) ) file to define macros.
I would like to be able to jump to the definition of these macros. I know that this is possible with ctags.
Is there a way to use the language-server to jump to such a macro definition instead?

@3ddiddE
Copy link
Author

3ddiddE commented Jul 6, 2022

Sorry, the plugin clearly says that the "definition provider is not found".
So this would be kind of a feature request or a question about your workflow.
Do you use ctags for this (if you want to inspect macros at all)?

@regen100
Copy link
Owner

CMake provides no API to get function/macro information. So I gave up at this time (ref #15).
However, it is practical to use ctags together. I usually use neovim with multiple LSPs and ctags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants