From 8d05fcaaeb1442c709f148ff934d92900743f051 Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Fri, 26 Apr 2024 00:50:04 +0300 Subject: feat: command to edit variants If there is no cmake-variants.yaml file in current directory, command creates it with default variants --- lua/cmake/test.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/cmake/test.lua (limited to 'lua/cmake/test.lua') diff --git a/lua/cmake/test.lua b/lua/cmake/test.lua new file mode 100644 index 0000000..d5fbab9 --- /dev/null +++ b/lua/cmake/test.lua @@ -0,0 +1,11 @@ +local lyaml = require("cmake.lyaml") +lyaml.dump({ { foo = "bar" } }) +--> --- +--> foo: bar +--> ... + +lyaml.dump({ "one", "two" }) +--> --- one +--> ... +--> --- two +--> ... -- cgit v1.2.3