aboutsummaryrefslogtreecommitdiff
path: root/lua/lualine
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2025-09-13 19:55:00 +0200
committerdelta <darkussdelta@gmail.com>2025-09-13 19:55:00 +0200
commit031bf426ca73146d9253548e77f90ec112ebcedb (patch)
treeb3dcd2de915ba1c31ad7bec2e30fc44df9226251 /lua/lualine
initial commit
Diffstat (limited to 'lua/lualine')
-rw-r--r--lua/lualine/themes/prismite.lua53
1 files changed, 53 insertions, 0 deletions
diff --git a/lua/lualine/themes/prismite.lua b/lua/lualine/themes/prismite.lua
new file mode 100644
index 0000000..25e50d5
--- /dev/null
+++ b/lua/lualine/themes/prismite.lua
@@ -0,0 +1,53 @@
+local colors = require "prismite.palette"
+local utils = require "prismite.utils"
+
+local styles = {
+ normal = {
+ a = { bg = colors.blue, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ insert = {
+ a = { bg = colors.green, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ visual = {
+ a = { bg = colors.pink, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ replace = {
+ a = { bg = colors.red, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ command = {
+ a = { bg = colors.cyan, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ inactive = {
+ a = { bg = colors.bg, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+}
+
+for _, segments in pairs(styles) do
+ for _, segment in pairs(segments) do
+ if type(segment.fg) == "table" and utils.is_oklch(segment.fg) then
+ segment.fg = utils.oklch2hex(segment.fg)
+ end
+
+ if type(segment.bg) == "table" and utils.is_oklch(segment.bg) then
+ segment.bg = utils.oklch2hex(segment.bg)
+ end
+
+ if type(segment.sp) == "table" and utils.is_oklch(segment.sp) then
+ segment.sp = utils.oklch2hex(segment.sp)
+ end
+ end
+end
+
+return styles