From 0dac4d79e948f7ca6843975713e2646e77135c02 Mon Sep 17 00:00:00 2001 From: Triston Date: Tue, 2 Jul 2024 13:01:35 -0400 Subject: [PATCH] remove a bunch of useless keymaps --- lua/config/keymaps.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 67c15fe..0941829 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -1,21 +1,13 @@ local map = vim.keymap.set vim.g.mapleader = " " -map({ "n", "v" }, "", "", { silent = true }) -map("n", "Q", "") -map("n", "q:", "") -map("n", "", "") -map("n", "", "w") -map("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) -map("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) -map("n", "", '{->v:hlsearch ? ":nohl\\" : "\\"}()', { expr = true }) +map("n", "", ':nohl') map("v", "J", ":m '>+1gv=gv") map("v", "K", ":m '<-2gv=gv") -- Buffers map("n", "", "bn") map("n", "", "bp") -map("n", "bd", "bd") -- Visual map("x", "<", "