From 4f4cb1fdad49d006d6a8db88aa4d90e316a1d2af Mon Sep 17 00:00:00 2001 From: Flavien Loiseau Date: Sun, 27 Apr 2025 12:00:59 +0200 Subject: [PATCH] Change numbering and remap escape --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 776c6873ff6..4d7f6098be3 100644 --- a/init.lua +++ b/init.lua @@ -99,10 +99,10 @@ vim.g.have_nerd_font = false -- For more options, you can see `:help option-list` -- Make line numbers default -vim.opt.number = 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' @@ -164,6 +164,9 @@ vim.opt.confirm = true -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` +-- Remap escape +vim.keymap.set('i', 'jk', '', { noremap = true }) + -- Clear highlights on search when pressing in normal mode -- See `:help hlsearch` vim.keymap.set('n', '', 'nohlsearch')