more keybinding description
This commit is contained in:
parent
1e7fd727c2
commit
54e87b448e
@ -29,9 +29,12 @@ local function hlWord()
|
||||
vim.fn.setreg('/', "\\<" .. current_word .. "\\>")
|
||||
vim.opt.hlsearch = true
|
||||
end
|
||||
|
||||
-- Highlight word under cursor
|
||||
vim.keymap.set('n', "'", hlWord, { noremap = true, silent = true })
|
||||
vim.keymap.set('x', "'", 'y/\\V<C-R>"<CR>N', { noremap = true, silent = true })
|
||||
vim.keymap.set('n', "'", hlWord, { noremap = true, silent = true, desc = 'Higlight word under cursor' })
|
||||
vim.keymap.set('x', "'", 'y/\\V<C-R>"<CR>N', { noremap = true, silent = true, desc = 'Highlight visual' })
|
||||
|
||||
-- Close Buffer
|
||||
vim.keymap.set('n', '<C-w>', ':bd<CR>')
|
||||
vim.keymap.set('n', '<C-w>', ':bd<CR>', { desc = 'Close buffer' })
|
||||
|
||||
vim.keymap.set('n', '<space>x', 'za', { desc = 'Toggle fold' })
|
||||
|
Loading…
x
Reference in New Issue
Block a user