nvim: colorings
This commit is contained in:
parent
9b9389592e
commit
afa495919c
2 changed files with 12 additions and 9 deletions
|
@ -29,7 +29,6 @@ local colors = {
|
||||||
change = hsl(41, 80, 80),
|
change = hsl(41, 80, 80),
|
||||||
change_quarter = hsl(224, 100, 85),
|
change_quarter = hsl(224, 100, 85),
|
||||||
delete = hsl(350, 100, 40),
|
delete = hsl(350, 100, 40),
|
||||||
delete_quarter = hsl(350, 100, 85),
|
|
||||||
|
|
||||||
dialog_bg = hsl(224, 5, 92),
|
dialog_bg = hsl(224, 5, 92),
|
||||||
selection = hsl(270, 75, 92),
|
selection = hsl(270, 75, 92),
|
||||||
|
@ -80,7 +79,10 @@ local colors = {
|
||||||
delete = hsl(350, 100, 40),
|
delete = hsl(350, 100, 40),
|
||||||
delete_quarter = hsl(350, 100, 15),
|
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_bg = hsl(218, 30, 13),
|
||||||
cmp_fg = hsl(218, 30, 80),
|
cmp_fg = hsl(218, 30, 80),
|
||||||
|
@ -114,6 +116,9 @@ local setupGroups = function(c)
|
||||||
|
|
||||||
Visual = { bg = c.selection },
|
Visual = { bg = c.selection },
|
||||||
|
|
||||||
|
Search = { bg = c.search_bg, fg = c.search_fg },
|
||||||
|
CurSearch = { link = "Search" },
|
||||||
|
|
||||||
Comment = { fg = c.comment, italic = true, bold = true },
|
Comment = { fg = c.comment, italic = true, bold = true },
|
||||||
CommentError = { fg = c.comment_error, italic = true, bold = true },
|
CommentError = { fg = c.comment_error, italic = true, bold = true },
|
||||||
["@comment.note"] = { link = "Comment" },
|
["@comment.note"] = { link = "Comment" },
|
||||||
|
@ -157,8 +162,8 @@ local setupGroups = function(c)
|
||||||
DiagnosticSignHint = { fg = c.diagnostic_hint },
|
DiagnosticSignHint = { fg = c.diagnostic_hint },
|
||||||
DiagnosticSignInfo = { fg = c.diagnostic_info },
|
DiagnosticSignInfo = { fg = c.diagnostic_info },
|
||||||
DiagnosticSignWarn = { fg = c.diagnostic_warning },
|
DiagnosticSignWarn = { fg = c.diagnostic_warning },
|
||||||
LineNr = { fg = c.dimmed, italic = true },
|
LineNr = { fg = c.dimmed },
|
||||||
CursorLineNr = { fg = c.dimmed_subtle, bg = c.highlight_subtle, bold = true },
|
CursorLineNr = { fg = c.dimmed_subtle, bg = c.highlight_subtle },
|
||||||
|
|
||||||
IndentLine = { fg = c.dimmed },
|
IndentLine = { fg = c.dimmed },
|
||||||
IndentLineCurrent = { fg = c.dimmed_subtle },
|
IndentLineCurrent = { fg = c.dimmed_subtle },
|
||||||
|
|
|
@ -69,7 +69,6 @@ vim.o.timeoutlen = 10
|
||||||
vim.o.timeout = true
|
vim.o.timeout = true
|
||||||
vim.o.updatetime = 50
|
vim.o.updatetime = 50
|
||||||
|
|
||||||
|
|
||||||
-- Use rg
|
-- Use rg
|
||||||
vim.o.grepprg = [[rg --glob "!.jj" --glob "!.git" --no-heading --vimgrep --follow $*]]
|
vim.o.grepprg = [[rg --glob "!.jj" --glob "!.git" --no-heading --vimgrep --follow $*]]
|
||||||
vim.opt.grepformat = vim.opt.grepformat ^ { "%f:%l:%c:%m" }
|
vim.opt.grepformat = vim.opt.grepformat ^ { "%f:%l:%c:%m" }
|
||||||
|
@ -150,10 +149,10 @@ vim.keymap.set("n", "K", function()
|
||||||
max_width = 80,
|
max_width = 80,
|
||||||
offset_x = 2,
|
offset_x = 2,
|
||||||
}
|
}
|
||||||
end, {})
|
end, {})
|
||||||
vim.keymap.set("n", "<Leader>ub", function()
|
vim.keymap.set("n", "<Leader>ub", function()
|
||||||
vim.o.background = (vim.o.background == "light" and "dark" or "light")
|
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", "<Leader>uc", function()
|
vim.keymap.set("n", "<Leader>uc", function()
|
||||||
if vim.g.colors_name == "dieter-nocolor" then
|
if vim.g.colors_name == "dieter-nocolor" then
|
||||||
vim.cmd [[colorscheme dieter]]
|
vim.cmd [[colorscheme dieter]]
|
||||||
|
@ -162,5 +161,4 @@ vim.keymap.set("n", "<Leader>uc", function()
|
||||||
end
|
end
|
||||||
end, opts("Toggle Dieter colors"))
|
end, opts("Toggle Dieter colors"))
|
||||||
vim.keymap.set("n", "<Leader>uh", "<cmd>InlayHintsToggle<cr>", opts("Toggle inlay hints"))
|
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"))
|
vim.keymap.set("n", "<Leader>uw", "<cmd>set invwrap<cr>", opts("Toggle line wrapping"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue