refactor(nvim): improve hop
integration with neo-tree
This commit is contained in:
parent
e16056ba2e
commit
104d557788
@ -5,7 +5,13 @@ return {
|
||||
{
|
||||
"f",
|
||||
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,
|
||||
desc = "Hop: Character",
|
||||
mode = { "" },
|
||||
|
@ -60,6 +60,8 @@ return {
|
||||
mappings = {
|
||||
["<space>"] = "none",
|
||||
["/"] = "none",
|
||||
["f"] = "none",
|
||||
["F"] = "fuzzy_finder",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user