refactor(nvim): toggle relative number with <leader>sr

This commit is contained in:
Price Hiller 2024-02-24 15:44:17 -06:00
parent 8c68e534d1
commit 36b3f7069c
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -65,7 +65,7 @@ M.setup = function()
end, { silent = true, desc = "LSP: Toggle Diagnostics" })
-- Toggle relativenumber
vim.keymap.set("n", "<leader>sn", function()
vim.keymap.set("n", "<leader>sr", function()
vim.opt.relativenumber = not vim.opt.relativenumber:get()
end, { silent = true, desc = "Toggle Relativenumber" })