From cdbea7c284d536d4c1e0b29eeec47c2954567c5d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 1 Apr 2022 00:27:19 +0200 Subject: chore(settings): remove lua settings --- lua/settings/keymaps.lua | 59 ------------------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 lua/settings/keymaps.lua (limited to 'lua/settings/keymaps.lua') diff --git a/lua/settings/keymaps.lua b/lua/settings/keymaps.lua deleted file mode 100644 index 8d8ed73..0000000 --- a/lua/settings/keymaps.lua +++ /dev/null @@ -1,59 +0,0 @@ --- Custom keymappings. - -local opts = { noremap = true, silent = true } - --- Shorten function name -local keymap = vim.api.nvim_set_keymap - ---Remap space as leader key -keymap("", "", "", opts) -vim.g.mapleader = " " -vim.g.maplocalleader = " " - --- Modes --- normal_mode = "n", --- insert_mode = "i", --- visual_mode = "v", --- visual_block_mode = "x", --- term_mode = "t", --- command_mode = "c", - --- Normal -- --- Better window navigation -keymap("n", "", "h", opts) -keymap("n", "", "j", opts) -keymap("n", "", "k", opts) -keymap("n", "", "l", opts) - -keymap("n", "e", ":Lex 30", opts) - --- Resize with arrows -keymap("n", "", ":resize +2", opts) -keymap("n", "", ":resize -2", opts) -keymap("n", "", ":vertical resize -2", opts) -keymap("n", "", ":vertical resize +2", opts) - --- Navigate buffers -keymap("n", "", ":bnext", opts) -keymap("n", "", ":bprevious", opts) - --- Insert -- --- Press jk fast to enter -keymap("i", "jk", "", opts) - --- Visual -- --- Stay in indent mode -keymap("v", "<", "", ">gv", opts) - --- Move text up and down -keymap("v", "", ":m .+1==", opts) -keymap("v", "", ":m .-2==", opts) -keymap("v", "p", '"_dP', opts) - --- Visual Block -- --- Move text up and down -keymap("x", "J", ":move '>+1gv-gv", opts) -keymap("x", "K", ":move '<-2gv-gv", opts) -keymap("x", "", ":move '>+1gv-gv", opts) -keymap("x", "", ":move '<-2gv-gv", opts) -- cgit v1.2.3-70-g09d2