remove a bunch of useless keymaps

This commit is contained in:
Triston Armstrong 2024-07-02 13:01:35 -04:00
parent 4cd6ea59e0
commit 0dac4d79e9
No known key found for this signature in database
GPG Key ID: FADE6AC6F956FC52

View File

@ -1,21 +1,13 @@
local map = vim.keymap.set
vim.g.mapleader = " "
map({ "n", "v" }, "<Space>", "<Nop>", { silent = true })
map("n", "Q", "<Nop>")
map("n", "q:", "<Nop>")
map("n", "<C-c>", "<Esc>")
map("n", "<C-s>", "<cmd>w<CR>")
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", "<Esc>", '{->v:hlsearch ? ":nohl\\<CR>" : "\\<CR>"}()', { expr = true })
map("n", "<Esc>", ':nohl<cr>')
map("v", "J", ":m '>+1<CR>gv=gv")
map("v", "K", ":m '<-2<CR>gv=gv")
-- Buffers
map("n", "<Tab>", "<cmd>bn<CR>")
map("n", "<S-Tab>", "<cmd>bp<CR>")
map("n", "<space>bd", "<cmd>bd<CR>")
-- Visual
map("x", "<", "<gv")