small fix for highlight word
This commit is contained in:
parent
d91ae17970
commit
edc73d3639
@ -27,7 +27,7 @@ vim.keymap.set('x', '>', '>gv')
|
||||
|
||||
local function hlWord()
|
||||
local current_word = vim.call('expand','<cword>')
|
||||
vim.fn.setreg('/', current_word)
|
||||
vim.fn.setreg('/', "\\<" .. current_word .. "\\>")
|
||||
vim.api.nvim_command "set hlsearch"
|
||||
end
|
||||
-- Highlight word under cursor
|
||||
|
Loading…
x
Reference in New Issue
Block a user