regen100 / cmake-language-server

CMake LSP Implementation
MIT License
331 stars 25 forks source link

How to specify configuration options for cmake-format? #65

Closed miguno closed 1 year ago

miguno commented 1 year ago

See title. I'd like to pass configuration settings to cmake-format, such as --enable-markup false. I didn't spot anything in the docs and code that seems to allow such customization.

syyyr commented 1 year ago

It seems that cmake-format arguments are hardcoded: https://github.com/regen100/cmake-language-server/blob/master/cmake_language_server/server.py#L165

I guess your only option is to use a configuration file as described here: https://cmake-format.readthedocs.io/en/latest/configuration.html

miguno commented 1 year ago

Ok. Thank you!