Skip to content

Commit

Permalink
feat: Add CMake support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed Nov 26, 2023
1 parent 2842fab commit 78f6400
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ navigation and the ability to output variable values.

* `bash`
* `c`
* `cmake`
* `cpp` (C++)
* `cs` (C#)
* `dart`
Expand Down Expand Up @@ -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: |
Expand Down
6 changes: 6 additions & 0 deletions lua/debugprint/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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;',
Expand Down

0 comments on commit 78f6400

Please sign in to comment.