From c7fc83eaf66cb379a4c2fdc7dd1f2a4aa597e06e Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Tue, 4 Jun 2024 21:57:51 +0200 Subject: [PATCH 01/10] Use links instead of repeating colors --- lua/sumi-e/init.lua | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/lua/sumi-e/init.lua b/lua/sumi-e/init.lua index 0b26bca..0082969 100644 --- a/lua/sumi-e/init.lua +++ b/lua/sumi-e/init.lua @@ -1,11 +1,12 @@ local colors = { light = { + background = "#fefeff", foreground = "#202020", intense = "#000000", primary = "#ff0000", secondary = "#00ff00", diagnostic_error = "#ff0038", - diagnostic_warning = "#ff7700", + diagnostic_warning = "#ffcc00", diagnostic_info = "#47eae0", diagnostic_hint = "#47eae0", diff_add = "#00ff77", @@ -16,6 +17,7 @@ local colors = { }, dark = { + background = "#000000", foreground = "#b2b2b2", intense = "#e7e7e7", primary = "#00ff00", @@ -35,26 +37,34 @@ local colors = { local c = colors[vim.o.background] local theme = { - Constant = { fg = c.foreground }, - Delimiter = { fg = c.foreground }, - Identifier = { fg = c.foreground }, - Normal = { fg = c.foreground }, + Constant = { link = "Normal" }, + Delimiter = { link = "Normal" }, + Identifier = { link = "Normal" }, + Normal = { fg = c.foreground, bg = c.background }, Keyword = { fg = c.foreground, bold = true }, - Operator = { fg = c.foreground }, - Special = { fg = c.foreground }, - String = { fg = c.foreground }, - Type = { fg = c.foreground }, - ["@function"] = { fg = c.foreground }, - ["@special"] = { fg = c.foreground }, - ["@variable"] = { fg = c.foreground }, + Operator = { link = "Normal" }, + Special = { link = "Normal" }, + String = { link = "Normal" }, + Type = { link = "Normal" }, + + -- Treesitter + ["@function"] = { link = "Normal" }, + ["@special"] = { link = "Normal" }, + ["@variable"] = { link = "Normal" }, -- UI Elements CursorLine = { bg = c.highlight_subtle }, + DiagnosticSignError = { fg = c.diagnostic_error }, + DiagnosticSignHint = { fg = c.diagnostic_hint }, + DiagnosticSignInfo = { fg = c.diagnostic_info }, + DiagnosticSignWarn = { fg = c.diagnostic_warning }, LineNr = { fg = c.dimmed, italic = true }, IndentLine = { fg = "#ffffff" }, IndentLineCurrent = { fg = c.dimmed }, TreesitterContext = { reverse = true }, TreesitterContextLineNumber = { bg = c.dimmed, reverse = true, italic = true }, + InclineNormal = { bg = "bg" }, + InclineNormalNC = { bg = "bg" }, } vim.cmd("hi clear") From 1c30abe726ef57b51dbc37368c03fc720bfc923a Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Tue, 4 Jun 2024 21:59:59 +0200 Subject: [PATCH 02/10] Rename theme -> dieter. --- README.md | 4 +++- colors/dieter.lua | 2 ++ colors/sumi-e.lua | 2 -- lua/{sumi-e => dieter}/init.lua | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 colors/dieter.lua delete mode 100644 colors/sumi-e.lua rename lua/{sumi-e => dieter}/init.lua (98%) diff --git a/README.md b/README.md index fd87161..6275395 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# 🖌️ Sumi-e -- A minimalist theme for Neovim +# 🔴 Dieter - A minimalist theme for Neovim + +Less but better. diff --git a/colors/dieter.lua b/colors/dieter.lua new file mode 100644 index 0000000..38e858c --- /dev/null +++ b/colors/dieter.lua @@ -0,0 +1,2 @@ +package.loaded["dieter"] = nil +require("dieter") diff --git a/colors/sumi-e.lua b/colors/sumi-e.lua deleted file mode 100644 index 09d10a2..0000000 --- a/colors/sumi-e.lua +++ /dev/null @@ -1,2 +0,0 @@ -package.loaded["sumi-e"] = nil -require("sumi-e") diff --git a/lua/sumi-e/init.lua b/lua/dieter/init.lua similarity index 98% rename from lua/sumi-e/init.lua rename to lua/dieter/init.lua index 0082969..42f280e 100644 --- a/lua/sumi-e/init.lua +++ b/lua/dieter/init.lua @@ -77,4 +77,4 @@ for group, hl in pairs(theme) do vim.api.nvim_set_hl(0, group, hl) end -vim.g.colors_name = "sumi-e" +vim.g.colors_name = "dieter" From cc8b832a87689edee1901557c3189787ed8366c1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Wed, 5 Jun 2024 09:03:16 +0200 Subject: [PATCH 03/10] hi: Add gitsigns --- lua/dieter/init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 42f280e..383fb8c 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -1,3 +1,5 @@ +local hsl = require("dieter.hsl").hslToHex + local colors = { light = { background = "#fefeff", @@ -12,6 +14,14 @@ local colors = { diff_add = "#00ff77", diff_change = "#47eae0", diff_delete = "#ff0038", + + add = hsl(84, 75, 67), + add_quarter = hsl(84, 80, 95), + change = hsl(41, 50, 75), + change_quarter = hsl(224, 100, 85), + delete = hsl(350, 100, 40), + delete_quarter = hsl(350, 100, 85), + highlight_subtle = "#f0f0f0", dimmed = "#cccccc", }, @@ -47,6 +57,16 @@ local theme = { String = { link = "Normal" }, Type = { link = "Normal" }, + DiffAdd = { fg = c.add, bg = c.add_quarter }, + GitSignsAdd = { fg = c.add, bg = c.background }, + GitSignsAddNr = { link = "DiffAdd" }, + DiffChange = { fg = c.change, bg = c.change_quarter }, + GitSignsChange = { fg = c.change, bg = c.background }, + GitSignsChangeNr = { link = "DiffChange" }, + DiffDelete = { fg = c.delete, bg = c.delete_quarter }, + GitSignsDelete = { fg = c.delete, bg = c.background }, + GitSignsDeleteNr = { link = "DiffDelete" }, + -- Treesitter ["@function"] = { link = "Normal" }, ["@special"] = { link = "Normal" }, From b7fa034ed472b103e40aa24b57afb3f7b50f0185 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Fri, 7 Jun 2024 17:46:35 +0200 Subject: [PATCH 04/10] Use hsl to define colors. Add a bunch of groups --- lua/dieter/hsl.lua | 71 ++++++++++++++++++++++++++++++++++++++++ lua/dieter/init.lua | 80 +++++++++++++++++++++++++++++++++++---------- 2 files changed, 133 insertions(+), 18 deletions(-) create mode 100644 lua/dieter/hsl.lua diff --git a/lua/dieter/hsl.lua b/lua/dieter/hsl.lua new file mode 100644 index 0000000..1d1b287 --- /dev/null +++ b/lua/dieter/hsl.lua @@ -0,0 +1,71 @@ +-- https://github.com/EmmanuelOga/columns/blob/master/utils/color.lua + +local M = {} + +--- Converts an HSL color value to RGB. Conversion formula +--- adapted from http://en.wikipedia.org/wiki/HSL_color_space. +--- Assumes h, s, and l are contained in the set [0, 1] and +--- returns r, g, and b in the set [0, 255]. +--- +--- @param h number The hue +--- @param s number The saturation +--- @param l number The lightness +--- @return number, number, number # The RGB representation +function M.hslToRgb(h, s, l) + --- @type number, number, number + local r, g, b + + if s == 0 then + r, g, b = l, l, l -- achromatic + else + --- @param p number + --- @param q number + --- @param t number + local function hue2rgb(p, q, t) + if t < 0 then + t = t + 1 + end + if t > 1 then + t = t - 1 + end + if t < 1 / 6 then + return p + (q - p) * 6 * t + end + if t < 1 / 2 then + return q + end + if t < 2 / 3 then + return p + (q - p) * (2 / 3 - t) * 6 + end + return p + end + + --- @type number + local q + if l < 0.5 then + q = l * (1 + s) + else + q = l + s - l * s + end + local p = 2 * l - q + + r = hue2rgb(p, q, h + 1 / 3) + g = hue2rgb(p, q, h) + b = hue2rgb(p, q, h - 1 / 3) + end + + return r * 255, g * 255, b * 255 +end + +--- Converts an HSL color value to RGB in Hex representation. +--- @param h number The hue +--- @param s number The saturation +--- @param l number The lightness +--- @return string # The hex representation +function M.hslToHex(h, s, l) + local r, g, b = M.hslToRgb(h / 360, s / 100, l / 100) + + return string.format("#%02x%02x%02x", r, g, b) +end + +return M diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 383fb8c..5674b0e 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -7,21 +7,37 @@ local colors = { intense = "#000000", primary = "#ff0000", secondary = "#00ff00", - diagnostic_error = "#ff0038", - diagnostic_warning = "#ffcc00", - diagnostic_info = "#47eae0", - diagnostic_hint = "#47eae0", + + string = hsl(96, 50, 33), + + comment = hsl(230, 66, 40), + comment_error = hsl(2, 85, 40), + + diagnostic_error = hsl(347, 80, 45), + diagnostic_warning = hsl(30, 100, 50), + diagnostic_info = hsl(145, 80, 30), + diagnostic_hint = hsl(145, 80, 30), + diff_add = "#00ff77", diff_change = "#47eae0", diff_delete = "#ff0038", - add = hsl(84, 75, 67), + popup_error_bg = hsl(0, 90, 99), + popup_warning_bg = hsl(27, 90, 99), + popup_info_bg = hsl(112, 90, 99), + popup_hint_bg = hsl(112, 90, 99), + + add = hsl(84, 50, 80), add_quarter = hsl(84, 80, 95), - change = hsl(41, 50, 75), + change = hsl(41, 80, 80), change_quarter = hsl(224, 100, 85), delete = hsl(350, 100, 40), delete_quarter = hsl(350, 100, 85), + dialog_bg = hsl(224, 5, 92), + + selection = hsl(270, 75, 92), + highlight_subtle = "#f0f0f0", dimmed = "#cccccc", }, @@ -47,15 +63,24 @@ local colors = { local c = colors[vim.o.background] local theme = { - Constant = { link = "Normal" }, - Delimiter = { link = "Normal" }, - Identifier = { link = "Normal" }, Normal = { fg = c.foreground, bg = c.background }, + + Constant = { link = "NormalNC" }, + Delimiter = { link = "NormalNC" }, + Identifier = { link = "NormalNC" }, Keyword = { fg = c.foreground, bold = true }, - Operator = { link = "Normal" }, - Special = { link = "Normal" }, - String = { link = "Normal" }, - Type = { link = "Normal" }, + Operator = { link = "NormalNC" }, + Special = { link = "NormalNC" }, + Type = { link = "NormalNC" }, + + String = { fg = c.string }, + + Comment = { fg = c.comment, italic = true, bold = true }, + CommentError = { fg = c.comment_error, italic = true, bold = true }, + ["@comment.note"] = { link = "Comment" }, + ["@comment.todo"] = { link = "CommentError" }, + ["@comment.error"] = { link = "CommentError" }, + ["@comment.warning"] = { link = "CommentError" }, DiffAdd = { fg = c.add, bg = c.add_quarter }, GitSignsAdd = { fg = c.add, bg = c.background }, @@ -68,12 +93,20 @@ local theme = { GitSignsDeleteNr = { link = "DiffDelete" }, -- Treesitter - ["@function"] = { link = "Normal" }, - ["@special"] = { link = "Normal" }, - ["@variable"] = { link = "Normal" }, + ["@function"] = { link = "NormalNC" }, + ["@special"] = { link = "NormalNC" }, + ["@variable"] = { link = "NormalNC" }, -- UI Elements CursorLine = { bg = c.highlight_subtle }, + + DiagnosticError = { fg = c.diagnostic_error, italic = true }, + DiagnosticUnderlineError = { fg = c.diagnostic_error, undercurl = true }, + DiagnosticFloatingError = { fg = c.diagnostic_error, bg = c.popup_error_bg }, + DiagnosticFloatingWarn = { fg = c.diagnostic_warning, bg = c.popup_warning_bg }, + DiagnosticFloatingInfo = { fg = c.diagnostic_info, bg = c.popup_info_bg }, + DiagnosticFloatingHint = { fg = c.diagnostic_hint, bg = c.popup_hint_bg }, + DiagnosticSignError = { fg = c.diagnostic_error }, DiagnosticSignHint = { fg = c.diagnostic_hint }, DiagnosticSignInfo = { fg = c.diagnostic_info }, @@ -83,8 +116,19 @@ local theme = { IndentLineCurrent = { fg = c.dimmed }, TreesitterContext = { reverse = true }, TreesitterContextLineNumber = { bg = c.dimmed, reverse = true, italic = true }, - InclineNormal = { bg = "bg" }, - InclineNormalNC = { bg = "bg" }, + InclineNormal = { bg = c.background }, + InclineNormalNC = { bg = c.background }, + + WinSeparator = { bg = c.dialog_bg }, + NormalFloat = { bg = c.dialog_bg }, + Title = { fg = c.foreground, bold = true }, + + TelescopeNormal = { fg = c.foreground, bg = c.background }, + TelescopeBorder = { bold = true }, + TelescopeSelection = { reverse = true }, + TelescopeResultsComment = { fg = c.foreground, italic = true }, + + Visual = { bg = c.selection }, } vim.cmd("hi clear") From 5af1ff2a6419591be799d957291f35f4bc092446 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Fri, 7 Jun 2024 19:29:51 +0200 Subject: [PATCH 05/10] Add dark mode colors --- lua/dieter/init.lua | 61 ++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 5674b0e..670fdb3 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -2,14 +2,10 @@ local hsl = require("dieter.hsl").hslToHex local colors = { light = { - background = "#fefeff", - foreground = "#202020", - intense = "#000000", - primary = "#ff0000", - secondary = "#00ff00", + background = hsl(240, 100, 100), + foreground = hsl(0, 0, 13), string = hsl(96, 50, 33), - comment = hsl(230, 66, 40), comment_error = hsl(2, 85, 40), @@ -18,10 +14,6 @@ local colors = { diagnostic_info = hsl(145, 80, 30), diagnostic_hint = hsl(145, 80, 30), - diff_add = "#00ff77", - diff_change = "#47eae0", - diff_delete = "#ff0038", - popup_error_bg = hsl(0, 90, 99), popup_warning_bg = hsl(27, 90, 99), popup_info_bg = hsl(112, 90, 99), @@ -35,28 +27,41 @@ local colors = { delete_quarter = hsl(350, 100, 85), dialog_bg = hsl(224, 5, 92), - selection = hsl(270, 75, 92), - - highlight_subtle = "#f0f0f0", - dimmed = "#cccccc", + highlight_subtle = hsl(0, 0, 94), + dimmed = hsl(0, 0, 80), }, dark = { - background = "#000000", - foreground = "#b2b2b2", - intense = "#e7e7e7", - primary = "#00ff00", - secondary = "#555555", - diagnostic_error = "#ff0038", - diagnostic_warning = "#ff7700", - diagnostic_info = "#47eae0", - diagnostic_hint = "#47eae0", - diff_add = "#00ff77", - diff_change = "#47eae0", - diff_delete = "#ff0038", - dimmed = "#666666", - highlight_subtle = "#101010", + background = hsl(216, 28, 7), + foreground = hsl(0, 0, 80), + dimmed = hsl(0, 0, 35), + highlight_subtle = hsl(0, 0, 6), + + string = hsl(66, 50, 73), + comment = hsl(230, 50, 75), + comment_error = hsl(2, 85, 75), + + diagnostic_error = hsl(347, 100, 50), + diagnostic_warning = hsl(30, 100, 50), + diagnostic_info = hsl(176, 80, 60), + diagnostic_hint = hsl(176, 80, 60), + + popup_error_bg = hsl(0, 95, 7), + popup_warning_bg = hsl(27, 95, 7), + popup_info_bg = hsl(112, 95, 7), + popup_hint_bg = hsl(112, 95, 7), + + add = hsl(84, 50, 80), + add_quarter = hsl(84, 80, 95), + change = hsl(41, 80, 80), + change_quarter = hsl(224, 100, 85), + delete = hsl(350, 100, 40), + delete_quarter = hsl(350, 100, 85), + + dialog_bg = hsl(224, 5, 92), + + selection = hsl(270, 50, 33), }, } From ffb2cd66435b1fd137b8e3f8838ecf774cb490d2 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Fri, 7 Jun 2024 22:40:12 +0200 Subject: [PATCH 06/10] More colors --- lua/dieter/init.lua | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 670fdb3..360a040 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -29,20 +29,24 @@ local colors = { dialog_bg = hsl(224, 5, 92), selection = hsl(270, 75, 92), highlight_subtle = hsl(0, 0, 94), + highlight_intense = hsl(42, 100, 30), dimmed = hsl(0, 0, 80), + dimmed_subtle = hsl(0, 0, 20), }, dark = { background = hsl(216, 28, 7), foreground = hsl(0, 0, 80), dimmed = hsl(0, 0, 35), + dimmed_subtle = hsl(0, 0, 70), highlight_subtle = hsl(0, 0, 6), + highlight_intense = hsl(58, 100, 60), - string = hsl(66, 50, 73), - comment = hsl(230, 50, 75), - comment_error = hsl(2, 85, 75), + string = hsl(96, 50, 70), + comment = hsl(220, 50, 60), + comment_error = hsl(2, 85, 50), - diagnostic_error = hsl(347, 100, 50), + diagnostic_error = hsl(353, 100, 45), diagnostic_warning = hsl(30, 100, 50), diagnostic_info = hsl(176, 80, 60), diagnostic_hint = hsl(176, 80, 60), @@ -52,14 +56,14 @@ local colors = { popup_info_bg = hsl(112, 95, 7), popup_hint_bg = hsl(112, 95, 7), - add = hsl(84, 50, 80), - add_quarter = hsl(84, 80, 95), - change = hsl(41, 80, 80), - change_quarter = hsl(224, 100, 85), + add = hsl(100, 100, 12), + add_quarter = hsl(84, 80, 15), + change = hsl(41, 100, 15), + change_quarter = hsl(224, 100, 15), delete = hsl(350, 100, 40), - delete_quarter = hsl(350, 100, 85), + delete_quarter = hsl(350, 100, 15), - dialog_bg = hsl(224, 5, 92), + dialog_bg = hsl(224, 5, 12), selection = hsl(270, 50, 33), }, @@ -101,23 +105,27 @@ local theme = { ["@function"] = { link = "NormalNC" }, ["@special"] = { link = "NormalNC" }, ["@variable"] = { link = "NormalNC" }, + ["@lsp.type.variable"] = { fg = c.dimmed_subtle }, -- UI Elements CursorLine = { bg = c.highlight_subtle }, DiagnosticError = { fg = c.diagnostic_error, italic = true }, - DiagnosticUnderlineError = { fg = c.diagnostic_error, undercurl = true }, DiagnosticFloatingError = { fg = c.diagnostic_error, bg = c.popup_error_bg }, DiagnosticFloatingWarn = { fg = c.diagnostic_warning, bg = c.popup_warning_bg }, DiagnosticFloatingInfo = { fg = c.diagnostic_info, bg = c.popup_info_bg }, DiagnosticFloatingHint = { fg = c.diagnostic_hint, bg = c.popup_hint_bg }, + DiagnosticUnderlineError = { fg = c.diagnostic_error, undercurl = true }, + DiagnosticUnderlineWarn = { fg = c.diagnostic_warn, undercurl = true }, + DiagnosticUnderlineInfo = { fg = c.diagnostic_info, undercurl = true }, + DiagnosticUnderlinehint = { fg = c.diagnostic_hint, undercurl = true }, DiagnosticSignError = { fg = c.diagnostic_error }, DiagnosticSignHint = { fg = c.diagnostic_hint }, DiagnosticSignInfo = { fg = c.diagnostic_info }, DiagnosticSignWarn = { fg = c.diagnostic_warning }, LineNr = { fg = c.dimmed, italic = true }, - IndentLine = { fg = "#ffffff" }, + IndentLine = { fg = c.background }, IndentLineCurrent = { fg = c.dimmed }, TreesitterContext = { reverse = true }, TreesitterContextLineNumber = { bg = c.dimmed, reverse = true, italic = true }, @@ -134,6 +142,7 @@ local theme = { TelescopeResultsComment = { fg = c.foreground, italic = true }, Visual = { bg = c.selection }, + LspReferenceText = { fg = c.highlight_intense, undercurl = true }, } vim.cmd("hi clear") From cacb641da23ad2eca62f1be66534b563acb59268 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Sun, 9 Jun 2024 00:30:05 +0200 Subject: [PATCH 07/10] dark: darker dimmed --- lua/dieter/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 360a040..91b6182 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -37,7 +37,7 @@ local colors = { dark = { background = hsl(216, 28, 7), foreground = hsl(0, 0, 80), - dimmed = hsl(0, 0, 35), + dimmed = hsl(0, 0, 25), dimmed_subtle = hsl(0, 0, 70), highlight_subtle = hsl(0, 0, 6), highlight_intense = hsl(58, 100, 60), From 43aef2aecd60b8255fc7b22bf6e262da814502f3 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Tue, 11 Jun 2024 21:38:52 +0200 Subject: [PATCH 08/10] dark: lighten dialog bg --- lua/dieter/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 91b6182..19ff5d1 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -63,7 +63,7 @@ local colors = { delete = hsl(350, 100, 40), delete_quarter = hsl(350, 100, 15), - dialog_bg = hsl(224, 5, 12), + dialog_bg = hsl(216, 25, 20), selection = hsl(270, 50, 33), }, From 37f9ba22c7e5554d8330f5f2d8dc0f5d1e454b0a Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Sun, 21 Jul 2024 15:29:58 +0200 Subject: [PATCH 09/10] Noice: use italics for mini messages --- lua/dieter/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index 19ff5d1..bcfbf98 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -136,6 +136,8 @@ local theme = { NormalFloat = { bg = c.dialog_bg }, Title = { fg = c.foreground, bold = true }, + NoiceMini = { fg = c.foreground, italic = true }, + TelescopeNormal = { fg = c.foreground, bg = c.background }, TelescopeBorder = { bold = true }, TelescopeSelection = { reverse = true }, From 08fae6ffec4ae70ba6b2e1cafa780ff317ef0b61 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Fri, 6 Sep 2024 10:50:56 +0200 Subject: [PATCH 10/10] Adjust telescope highlights --- lua/dieter/init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/dieter/init.lua b/lua/dieter/init.lua index bcfbf98..e1939d1 100644 --- a/lua/dieter/init.lua +++ b/lua/dieter/init.lua @@ -38,7 +38,7 @@ local colors = { background = hsl(216, 28, 7), foreground = hsl(0, 0, 80), dimmed = hsl(0, 0, 25), - dimmed_subtle = hsl(0, 0, 70), + dimmed_subtle = hsl(0, 0, 50), highlight_subtle = hsl(0, 0, 6), highlight_intense = hsl(58, 100, 60), @@ -140,8 +140,9 @@ local theme = { TelescopeNormal = { fg = c.foreground, bg = c.background }, TelescopeBorder = { bold = true }, - TelescopeSelection = { reverse = true }, - TelescopeResultsComment = { fg = c.foreground, italic = true }, + TelescopeSelection = { bg = c.selection }, + TelescopeResultsNormal = { fg = c.foreground, bold = true }, + TelescopeResultsComment = { fg = c.dimmed_subtle, italic = true, bold = false }, Visual = { bg = c.selection }, LspReferenceText = { fg = c.highlight_intense, undercurl = true },