diff --git a/init.lua b/init.lua index d51f276e..7be3c504 100644 --- a/init.lua +++ b/init.lua @@ -102,7 +102,7 @@ vim.g.have_nerd_font = true vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.opt.relativenumber = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -122,7 +122,7 @@ end) vim.opt.breakindent = true -- Save undo history -vim.opt.undofile = true +vim.opt.undofile = false -- Case-insensitive searching UNLESS \C or one or more capital letters in the search term vim.opt.ignorecase = true @@ -189,10 +189,10 @@ vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' } -- Use CTRL+ to switch between windows -- -- See `:help wincmd` for a list of all window commands -vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +vim.keymap.set('n', 'wi', '', { desc = 'Move focus to the left window' }) +vim.keymap.set('n', 'we', '', { desc = 'Move focus to the right window' }) +vim.keymap.set('n', 'wa', '', { desc = 'Move focus to the lower window' }) +vim.keymap.set('n', 'wl', '', { desc = 'Move focus to the upper window' }) -- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes -- vim.keymap.set("n", "", "H", { desc = "Move window to the left" })