nvim: colorings

This commit is contained in:
Daniel Lundin 2025-01-03 12:48:33 +01:00
parent 9b9389592e
commit afa495919c
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 12 additions and 9 deletions

View file

@ -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 },

View file

@ -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" }
@ -163,4 +162,3 @@ vim.keymap.set("n", "<Leader>uc", function()
end, opts("Toggle Dieter colors"))
vim.keymap.set("n", "<Leader>uh", "<cmd>InlayHintsToggle<cr>", opts("Toggle inlay hints"))
vim.keymap.set("n", "<Leader>uw", "<cmd>set invwrap<cr>", opts("Toggle line wrapping"))