aboutsummaryrefslogtreecommitdiff
path: root/nvim.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim.lua')
-rw-r--r--nvim.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/nvim.lua b/nvim.lua
new file mode 100644
index 0000000..d17abe5
--- /dev/null
+++ b/nvim.lua
@@ -0,0 +1,18 @@
+local utils = require "lib.utils"
+
+local palette = utils.get_palette()
+
+local output = [[-- autogenerated from palette.json
+return {
+]]
+
+for name, value in utils.opairs(palette) do
+ for variant, v_value in utils.opairs(value) do
+ local color = "{ l = " .. v_value.l .. ", c = " .. v_value.c .. ", h = " .. v_value.h .. "}"
+ output = output .. " " .. name .. (variant == "normal" and "" or "_" .. variant) .. " = " .. color .. ",\n"
+ end
+end
+
+output = output .. "}"
+
+print(output)