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:
parent
d40d87cb61
commit
acb423984a
@ -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,
|
||||
})
|
||||
|
||||
@ -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" }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user