sublimelsp / LSP-clangd

C/C++ support for Sublime's LSP plugin provided through clangd.
MIT License
42 stars 1 forks source link

Project level "binary" is not applied properly #31

Open skotopes opened 1 month ago

skotopes commented 1 month ago

I'd like to have custom clangd binary in the project, however project level configuration("binary") is ignored. It will be nice to have ability to override "binary" on project level.

Project example:

{
    "folders":
    [
        {
            "path": ".",
        }
    ],
    "settings": {
        "LSP": {
            "clangd": {
                "enabled": true,
                "binary": "custom",
                "initializationOptions": {
                    "custom_command": ["toolchain/current/bin/clangd"],

                    "clangd.compile-commands-dir": "build/latest",
                    "clangd.header-insertion": "never",
                    "clangd.query-driver": "**/arm-none-eabi-*",
                    "clangd.clang-tidy": true,
                },
            },
        },
   },
}