From e315bd70166dd54ad1293c684a4c2a9e99377c8b Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 13 Feb 2026 10:07:41 +0100 Subject: [PATCH] overwrite gruvbox theme --- modules/nvim.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/nvim.nix b/modules/nvim.nix index da27e67..f2fae00 100644 --- a/modules/nvim.nix +++ b/modules/nvim.nix @@ -79,7 +79,18 @@ enable = true; settings = { options = { - theme = "gruvbox_dark"; + theme.__raw = '' + (function() + local theme = require('lualine.themes.gruvbox_dark') + for _, mode in ipairs({'insert', 'visual', 'replace', 'command'}) do + if theme[mode] then + theme[mode].b = theme.normal.b + theme[mode].c = theme.normal.c + end + end + return theme + end)() + ''; component_separators = { left = "|"; right = "|"; }; section_separators = { left = " "; right = " "; }; };