// plugins

cmakefmt Plugin

Adapter plugin that formats CMake files via cmakefmt.

Formats CMakeLists.txt, CMakeLists.txt.in, and .cmake files.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add sargunv/dprint-cmakefmt

This will update your config file to have an entry for the plugin. Then optionally specify a "cmakefmt" property to add configuration:

{
  "cmakefmt": {
    // cmakefmt config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/sargunv/dprint-cmakefmt-x.x.x.wasm"
  ]
}

Configuration

See Configuration.