From 1049601e0b07627ef967d1092adc04022598648b Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Sat, 22 Feb 2025 19:11:05 -0500 Subject: started flake config --- nvim/keybinds.lua | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 nvim/keybinds.lua (limited to 'nvim/keybinds.lua') diff --git a/nvim/keybinds.lua b/nvim/keybinds.lua deleted file mode 100644 index 1c1c512..0000000 --- a/nvim/keybinds.lua +++ /dev/null @@ -1,41 +0,0 @@ -local map = vim.keymap.set - -local function nmap(lhs, rhs, opts) - map('n', lhs, rhs, opts) -end - -local function swap(mode, bind1, bind2) - local tmp=bind1 - map(mode, bind1, bind2) - map(mode, bind2, tmp) -end - -local function swapnv(bind1, bind2) - swap({'n', 'v'}, bind1, bind2) -end - -swapnv('m', 'h') -swapnv('n', 'j') -swapnv('e', 'k') -swapnv('i', 'l') - -swapnv('M', 'H') -swapnv('N', 'J') ---swapnv('E', 'K') -swapnv('I', 'L') - -nmap('tn', ':tabnew', { desc = "Open a new tab" }) -nmap('tc', ':tabc', { desc = "Close the current tab" }) -nmap('tm', ':tabp', { desc = "Go to previous tab" }) -nmap('ti', ':tabn', { desc = "Go to next tab" }) - -nmap('wv', ':vne', { desc = "Create vertical split" }) -nmap('wh', ':new', { desc = "Create horizontal split" }) -nmap('wc', ':clo', { desc = "Close current window" }) - -nmap('wm', '', { desc = "Focus window left of the current one" }) -nmap('wn', '', { desc = "Focus window below the current one" }) -nmap('we', '', { desc = "Focus window above the current one" }) -nmap('wi', '', { desc = "Focus window right of the current one" }) - -nmap('fo', 'Telescope find_files', { silent = true }) -- cgit v1.2.3