Configuration
The configuration file can either be named .neocmake.toml or
.neocmakelint.toml and is resolved in the current project directory.
If neither is found, a user configuration file in $XDG_CONFIG_DIR/neocmakelsp
either named config.toml or lint.toml can be used.
Warning
This document describes the configuration of the latest git version of neocmakelsp.
Info
Only a single configuration file will be used. The first file found in the order described above will be used.
Top-Level Configuration
Warning
The builtin formatter is currently not configurable. The configuration settings listed below only influence the linting behavior.
command_case
- Type: String
- Description: Enable linting of consistency in command casing.
- Valid values:
"upper_case": Commands must be uppercase."lower_case": Commands must be lowercase.
- Default: Unset
- Example:
.neocmake.toml
enable_external_cmake_lint
- Type: Boolean
- Description: Enable linting with
cmake-lint. - Default:
false - Example:
.neocmake.toml
line_max_words
- Type: Integer
- Description: Maximum number of words allowed on a single line.
- Default:
80 - Example:
.neocmake.toml
Format Configuration
program
- Type: String
- Description: External program to use for auto-formatting.
- Default: Unset
- Example:
.neocmake.toml
args
- Type: Array of strings
- Description: Extra arguments to pass to the formatting program.
- Default: Unset
- Example:
.neocmake.toml