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
home/common/nvim

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" }
@ -150,10 +149,10 @@ vim.keymap.set("n", "K", function()
max_width = 80,
offset_x = 2,
}
end, {})
end, {})
vim.keymap.set("n", "<Leader>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", "<Leader>uc", function()
if vim.g.colors_name == "dieter-nocolor" then
vim.cmd [[colorscheme dieter]]
@ -162,5 +161,4 @@ vim.keymap.set("n", "<Leader>uc", function()
end
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"))
vim.keymap.set("n", "<Leader>uw", "<cmd>set invwrap<cr>", opts("Toggle line wrapping"))