summary refs log tree commit diff
path: root/.vim/snippets/cmake.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.vim/snippets/cmake.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/.vim/snippets/cmake.lua b/.vim/snippets/cmake.lua
new file mode 100644
index 0000000..946fab7
--- /dev/null
+++ b/.vim/snippets/cmake.lua
@@ -0,0 +1,26 @@
+---@diagnostic disable: undefined-global
+return {
+  s(
+    { trig = 'debugvar', desc = 'cmake_print_variables' },
+    fmt(
+      [=[
+      include(CMakePrintHelpers)
+      cmake_print_variables({})
+    ]=],
+      { i(1) }
+    )
+  ),
+  s(
+    { trig = 'debugprop', desc = 'cmake_print_properties' },
+    fmt(
+      [=[
+      include(CMakePrintHelpers)
+      cmake_print_properties(
+          TARGETS {}
+          PROPERTIES {}
+      )
+    ]=],
+      { i(1), i(2) }
+    )
+  ),
+}