Shatur / neovim-cmake

CMake integration for Neovim
GNU General Public License v3.0
87 stars 19 forks source link

Add config parameter to disable copying compile commands #41

Closed JafarAbdi closed 2 years ago

JafarAbdi commented 2 years ago

Sometimes this file could be big so it would be great to have an option to disable copying it

Shatur commented 2 years ago

But you won't have completion without it.

JafarAbdi commented 2 years ago

I use the same file in https://github.com/Shatur/neovim-cmake/pull/40#issuecomment-1144841567 to explicitly pass the "--compile-commands-dir=" option to clangd which doesn't require copying

Shatur commented 2 years ago

Hm... I wonder if we could avoid copying at all and always use the mentioned flag. What do you think?

JafarAbdi commented 2 years ago

That might require changing how users configure clangd which may cause issues for some users, but we could add a note about that option and how to configure clangd with compile-commands-dir

Shatur commented 2 years ago

Oh, right. Okay, let's introduce this feature. Please, update the readme and I will merge it.