Explorar o código

WhichKey: Make <leader>n clear search instead of toggling highlight (#519)

OliverNChalk %!s(int64=4) %!d(string=hai) anos
pai
achega
257b6051e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lua/lv-which-key/init.lua

+ 1 - 1
lua/lv-which-key/init.lua

@@ -48,7 +48,7 @@ vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true}
 vim.g.mapleader = ' '
 
 -- no hl
-vim.api.nvim_set_keymap('n', '<Leader>h', ':set hlsearch!<CR>', {noremap = true, silent = true})
+vim.api.nvim_set_keymap('n', '<Leader>h', ':let @/=""<CR>', {noremap = true, silent = true})
 
 -- explorer
 vim.api.nvim_set_keymap('n', '<Leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})