[Keybinds] Add toggle relative numbering
This commit is contained in:
parent
c736531a33
commit
4656f74fdd
@ -130,3 +130,7 @@ keymap.set({ "n", "v" }, "<leader><leader>d", '"+d', opts("yank to system clipbo
|
||||
keymap.set({ "n", "v" }, "<leader><leader>D", '"+D', opts("YANK to system clipboard and DELETE"))
|
||||
|
||||
keymap.set("n", "<leader>wk", ":WhichKey<CR>", opts("Toggle WhichKey"))
|
||||
|
||||
|
||||
-- Toggle relative line numbers
|
||||
keymap.set( 'n', '<leader>.', ':lua vim.wo.relativenumber = not vim.wo.relativenumber', opts( 'Toggle relative line numbers' ))
|
||||
|
@ -18,7 +18,7 @@ vim.opt.linebreak = true
|
||||
-- line numbers
|
||||
vim.wo.number = true
|
||||
vim.wo.cursorline = true
|
||||
vim.wo.relativenumber = false
|
||||
vim.wo.relativenumber = true
|
||||
vim.opt.signcolumn = "yes" -- reserve space for diagnostics
|
||||
|
||||
-- search options
|
||||
|
Loading…
x
Reference in New Issue
Block a user