This commit is contained in:
fugotakefusa 2025-10-29 22:51:24 +13:00
parent 200e212491
commit 1a0dd9687d
1 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,8 @@
-- [[ Basic Keymaps ]]
-- Clear highlights on search when pressing <Esc> in normal mode
-- Clear highlights on search when pressing <C-c> in normal mode
-- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '<C-c>', '<cmd>nohlsearch<CR>')
-- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> to switch between windows
@ -11,6 +11,3 @@ vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left wind
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
vim.keymap.set('i', '<Esc>', '<C-c>', { noremap = true })
vim.keymap.set('n', '<Esc>', '<C-c>', { noremap = true })