From 450812db45d6182f573772c68b8e1b053b5abd54 Mon Sep 17 00:00:00 2001 From: jackokring Date: Wed, 13 Nov 2024 16:37:18 +0000 Subject: [PATCH] Wednesday 2024-11-13 16:37:17 --- extras-backup/nvim/lua/config/keymaps.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extras-backup/nvim/lua/config/keymaps.lua b/extras-backup/nvim/lua/config/keymaps.lua index a73cee0..5a88151 100644 --- a/extras-backup/nvim/lua/config/keymaps.lua +++ b/extras-backup/nvim/lua/config/keymaps.lua @@ -50,8 +50,10 @@ end ---@param seq string ---@param desc string ---@param action string | function -local function nkey(seq, desc, action) - k("n", seq, action, { desc = desc }) +---@param remap? boolean +local function nkey(seq, desc, action, remap) + remap = remap or false -- nil -> false + k("n", seq, action, { desc = desc, remap = remap }) end -- also defines for i but ends with n mode (no func use com)