use more lua functions
This commit is contained in:
parent
edc73d3639
commit
739b2154eb
@ -28,7 +28,7 @@ vim.keymap.set('x', '>', '>gv')
|
||||
local function hlWord()
|
||||
local current_word = vim.call('expand','<cword>')
|
||||
vim.fn.setreg('/', "\\<" .. current_word .. "\\>")
|
||||
vim.api.nvim_command "set hlsearch"
|
||||
vim.opt.hlsearch = true
|
||||
end
|
||||
-- Highlight word under cursor
|
||||
vim.keymap.set('n', "'", hlWord, { noremap = true, silent = false })
|
||||
|
Loading…
x
Reference in New Issue
Block a user