diff --git a/home/common/nvim/dieter/lua/dieter/init.lua b/home/common/nvim/dieter/lua/dieter/init.lua index 8fc4535..7a7d3a2 100644 --- a/home/common/nvim/dieter/lua/dieter/init.lua +++ b/home/common/nvim/dieter/lua/dieter/init.lua @@ -29,7 +29,6 @@ local colors = { 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), @@ -80,7 +79,10 @@ local colors = { delete = hsl(350, 100, 40), delete_quarter = hsl(350, 100, 15), - selection = hsl(213, 60, 40), + selection = hsl(218, 30, 20), + + search_bg = hsl(43, 100, 8), + search_fg = hsl(43, 100, 85), cmp_bg = hsl(218, 30, 13), cmp_fg = hsl(218, 30, 80), @@ -114,6 +116,9 @@ local setupGroups = function(c) Visual = { bg = c.selection }, + Search = { bg = c.search_bg, fg = c.search_fg }, + CurSearch = { link = "Search" }, + Comment = { fg = c.comment, italic = true, bold = true }, CommentError = { fg = c.comment_error, italic = true, bold = true }, ["@comment.note"] = { link = "Comment" }, @@ -157,8 +162,8 @@ local setupGroups = function(c) DiagnosticSignHint = { fg = c.diagnostic_hint }, DiagnosticSignInfo = { fg = c.diagnostic_info }, DiagnosticSignWarn = { fg = c.diagnostic_warning }, - LineNr = { fg = c.dimmed, italic = true }, - CursorLineNr = { fg = c.dimmed_subtle, bg = c.highlight_subtle, bold = true }, + LineNr = { fg = c.dimmed }, + CursorLineNr = { fg = c.dimmed_subtle, bg = c.highlight_subtle }, IndentLine = { fg = c.dimmed }, IndentLineCurrent = { fg = c.dimmed_subtle }, diff --git a/home/common/nvim/init.lua b/home/common/nvim/init.lua index 2372c92..8682273 100644 --- a/home/common/nvim/init.lua +++ b/home/common/nvim/init.lua @@ -69,7 +69,6 @@ vim.o.timeoutlen = 10 vim.o.timeout = true vim.o.updatetime = 50 - -- Use rg vim.o.grepprg = [[rg --glob "!.jj" --glob "!.git" --no-heading --vimgrep --follow $*]] vim.opt.grepformat = vim.opt.grepformat ^ { "%f:%l:%c:%m" } @@ -150,10 +149,10 @@ vim.keymap.set("n", "K", function() max_width = 80, offset_x = 2, } - end, {}) +end, {}) vim.keymap.set("n", "ub", function() vim.o.background = (vim.o.background == "light" and "dark" or "light") - end, opts("Toggle dark/light background")) +end, opts("Toggle dark/light background")) vim.keymap.set("n", "uc", function() if vim.g.colors_name == "dieter-nocolor" then vim.cmd [[colorscheme dieter]] @@ -162,5 +161,4 @@ vim.keymap.set("n", "uc", function() end end, opts("Toggle Dieter colors")) vim.keymap.set("n", "uh", "InlayHintsToggle", opts("Toggle inlay hints")) -vim.keymap.set("n", "uw","set invwrap", opts("Toggle line wrapping")) - +vim.keymap.set("n", "uw", "set invwrap", opts("Toggle line wrapping"))