nvim: colorings
This commit is contained in:
parent
9b9389592e
commit
afa495919c
2 changed files with 12 additions and 9 deletions
home/common/nvim
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue