feat: supports copy compile commands and specify target directory#316
Merged
Civitasv merged 1 commit intoCivitasv:masterfrom May 14, 2025
Merged
Conversation
Owner
|
Thanks for your contribution! This is a nice feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaced
cmake_soft_link_compile_commandsandcmake_compile_commands_from_lspwithcmake_compile_commands_options, where you can specify action and target path:With
action = "soft_link", the behavior is the same asWith
action = "lsp", the behavior is the same asWith
action = "none", the behavior is the same asDefault behavior remains unchanged. The
copyaction is my personal preference, and is also requested by #243 .targetis path to directory where the created symlink file or copied compile_commands.json is stored. Previously it is hardcoded tovim.loop.cwd(), now it's configurable.I'm really bad at naming things, so if you don't like the naming or any other thing, feel free to give suggestions or just close PR.