1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

remove vim-asterisk

The * can now search selected text by default. The cursor stay feature
can also be simulated.
This commit is contained in:
jdhao 2022-10-05 12:40:53 +08:00
parent d40d87cb61
commit acb423984a
2 changed files with 12 additions and 5 deletions

View File

@ -34,5 +34,15 @@ keymap.set("n", "N", "", {
end,
})
keymap.set("n", "*", "<Plug>(asterisk-z*)<Cmd>lua require('hlslens').start()<CR>")
keymap.set("n", "#", "<Plug>(asterisk-z#)<Cmd>lua require('hlslens').start()<CR>")
keymap.set("n", "*", "", {
callback = function()
vim.fn.execute("normal! *N")
hlslens.start()
end,
})
keymap.set("n", "#", "", {
callback = function()
vim.fn.execute("normal! #N")
hlslens.start()
end,
})

View File

@ -99,9 +99,6 @@ packer.startup {
config = [[require('config.hlslens')]],
}
-- Stay after pressing * and search selected text
use { "haya14busa/vim-asterisk", event = "VimEnter" }
-- File search, tag search and more
if vim.g.is_win then
use { "Yggdroot/LeaderF", cmd = "Leaderf" }