refactor(nvim): improve hop integration with neo-tree

This commit is contained in:
Price Hiller 2024-06-12 02:53:00 -05:00
parent e16056ba2e
commit 104d557788
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 9 additions and 1 deletions

View File

@ -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 = { "" },

View File

@ -60,6 +60,8 @@ return {
mappings = { mappings = {
["<space>"] = "none", ["<space>"] = "none",
["/"] = "none", ["/"] = "none",
["f"] = "none",
["F"] = "fuzzy_finder",
}, },
}, },
} }