diff --git a/README.md b/README.md index 2487f76..924f424 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ navigation and the ability to output variable values. * `bash` * `c` +* `cmake` * `cpp` (C++) * `cs` (C#) * `dart` @@ -280,7 +281,7 @@ If it helps to understand these, you can look at the built-in configurations in | C | :+1: | :+1: | :x: | :x: | :x: | :+1: | :x: | | C# | :+1: | :+1: | :x: | :x: | :x: | :x: | :x: | | C++ | :+1: | :+1: | :+1: | :+1: | :+1: | :+1: | :x: | -| CMake | :x: | :+1: | :x: | :x: | :x: | :x: | :x: | +| CMake | :+1: | :+1: | :x: | :x: | :x: | :x: | :x: | | dart | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | | Docker | :+1: | :+1: | :x: | :x: | :x: | :x: | :x: | | fish | :+1: | :+1: | :x: | :x: | :x: | :x: | :x: | diff --git a/lua/debugprint/filetypes.lua b/lua/debugprint/filetypes.lua index e0c1165..5bfcd8e 100644 --- a/lua/debugprint/filetypes.lua +++ b/lua/debugprint/filetypes.lua @@ -35,6 +35,12 @@ return { mid_var = '%d\\n", ', right_var = ");", }, + ["cmake"] = { + left = 'message(DEBUG "', + right = '")', + mid_var = "${", + right_var = '}")', + }, ["cpp"] = { left = 'std::cerr << "', right = '" << std::endl;',