refactor(nvim): improve hop
integration with neo-tree
This commit is contained in:
parent
e16056ba2e
commit
104d557788
@ -5,7 +5,13 @@ return {
|
|||||||
{
|
{
|
||||||
"f",
|
"f",
|
||||||
function()
|
function()
|
||||||
require("hop").hint_char1({ current_line_only = false })
|
if vim.bo.filetype == "neo-tree" then
|
||||||
|
---@diagnostic disable-next-line: missing-fields
|
||||||
|
require("hop").hint_lines({})
|
||||||
|
else
|
||||||
|
---@diagnostic disable-next-line: missing-fields
|
||||||
|
require("hop").hint_char1({ current_line_only = false })
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
desc = "Hop: Character",
|
desc = "Hop: Character",
|
||||||
mode = { "" },
|
mode = { "" },
|
||||||
|
@ -60,6 +60,8 @@ return {
|
|||||||
mappings = {
|
mappings = {
|
||||||
["<space>"] = "none",
|
["<space>"] = "none",
|
||||||
["/"] = "none",
|
["/"] = "none",
|
||||||
|
["f"] = "none",
|
||||||
|
["F"] = "fuzzy_finder",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user