aboutsummaryrefslogtreecommitdiff
path: root/plugin/mappings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/mappings.lua')
-rw-r--r--plugin/mappings.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/mappings.lua b/plugin/mappings.lua
index 8fd435f..d46955f 100644
--- a/plugin/mappings.lua
+++ b/plugin/mappings.lua
@@ -4,6 +4,8 @@ local map = vim.api.nvim_set_keymap
map('i', 'jk', '<esc>', {noremap = true, silent = true})
map('i', 'kj', '<esc>', {noremap = true, silent = true})
+map('n', '<Esc>', '<cmd>nohlsearch<CR>', {})
+
-- TAB in normal mode will move to next buffer
map('n', '<TAB>', ':bnext<cr>', {noremap = true, silent = true})
@@ -19,7 +21,6 @@ map('n', '<Leader>1', ':only<cr>', {noremap = true})
map('n', '<Leader>c', ':close<cr>', {noremap = true})
map('n', '<Leader>v', ':vsplit<cr><cr>', {noremap = true})
map('n', '<Leader>s', ':split<cr><cr>', {noremap = true})
-map('n', '<C-s>', ':split<cr>', {noremap = true, silent = true})
map('n', '<Leader>d', ':bd!<cr>', {noremap = true})
-- Placeholders