aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/eugenetriguba/keymaps.lua
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-11-28 20:01:52 -0800
committerEugene Triguba <hello@eugenetriguba.com>2026-11-28 20:01:52 -0800
commita19071df5a6d40269f7a264b68d2600ea93ca7ae (patch)
tree819fa0cce4259ee328de0fdbfa202e51d35ab86b /.config/nvim/lua/eugenetriguba/keymaps.lua
parentUpdate nvim plugins (diff)
downloaddotfiles-a19071df5a6d40269f7a264b68d2600ea93ca7ae.zip
Add openbsd dotfilesopenbsd
Diffstat (limited to '.config/nvim/lua/eugenetriguba/keymaps.lua')
-rw-r--r--.config/nvim/lua/eugenetriguba/keymaps.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/.config/nvim/lua/eugenetriguba/keymaps.lua b/.config/nvim/lua/eugenetriguba/keymaps.lua
deleted file mode 100644
index 68c8281..0000000
--- a/.config/nvim/lua/eugenetriguba/keymaps.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-local map = vim.keymap.set
-
--- Create split panes using leader key
-map('n', '<leader>sh', ':split<CR>')
-map('n', '<leader>sv', ':vsplit<CR>')
-
--- Clear highlights on search when pressing <Esc> in normal mode
-map('n', '<Esc>', '<cmd>nohlsearch<CR>')
-
--- Diagnostic keymaps
-map('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
-
--- Cycle through buffers
-map('n', '<Tab>', ':bnext<CR>')
-map('n', '<S-Tab>', ':bprevious<CR>')
-
--- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
--- to remember.
-map('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-
--- Keybinds to make split navigation easier.
--- Use CTRL+<hjkl> to switch between windows
---
--- See `:help wincmd` for a list of all window commands
-map('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
-map('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
-map('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
-map('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-
--- Delete the current buffer
-vim.keymap.set('n', '<leader>bd', '<cmd>bdelete<cr>', { desc = 'Delete current buffer' })
--- Force delete the current buffer (discard changes)
-vim.keymap.set('n', '<leader>bD', '<cmd>bdelete!<cr>', { desc = 'Force delete current buffer' })
--- Delete all buffers except the current one
-vim.keymap.set('n', '<leader>ba', ':%bd|e#<cr>', { desc = 'Delete all other buffers' })