feat: add autocommand to toggle relative number

This commit is contained in:
Fabio Lenherr / DashieTM 2023-02-28 22:49:54 +01:00
parent 7fb7a08108
commit aee215c25a
7 changed files with 50 additions and 36 deletions

View file

@ -17,6 +17,10 @@ end
local opts = { noremap = true, silent = true }
local term_opts = { silent = true }
map("n", "d", ':set relativenumber<CR>d', opts)
map("n", "y", ':set relativenumber<CR>y', opts)
map("n", "<ESC>", ':set norelativenumber<CR><ESC>', opts)
-- debug
map("n", "<F5>", ':lua require("dap").toggle_breakpoint()<CR>', opts)
map("n", "<F6>", ':lua require("dap").step_over()<CR>', opts)