diff --git a/config/nvim/lua/user/keymaps.lua b/config/nvim/lua/user/keymaps.lua index a641ffa..bf5a769 100644 --- a/config/nvim/lua/user/keymaps.lua +++ b/config/nvim/lua/user/keymaps.lua @@ -72,7 +72,8 @@ nmap('sp', 'set spell! | set spell?', { silent = true }) nmap('bg', [[let &background = &background ==? 'light' ? 'dark' : 'light']]) -- disable highlight until next search -nmap('h', 'nohlsearch') +nmap('', 'nohlsearch') +imap('', 'nohlsearch') -- more convenient way of entering normal mode from terminal mode tmap([[]], [[]])