feat(neo-tree): add mapping to focus tree

This commit is contained in:
2025-04-14 00:37:36 +02:00
parent 7942348e98
commit 131f96299d
+11
View File
@@ -7,6 +7,13 @@ local function toggle_neo_tree()
}) })
end end
local function focus_neo_tree()
require("neo-tree.command").execute({
action = "focus",
reveal = true,
})
end
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
@@ -21,6 +28,10 @@ return {
"<leader>tt", "<leader>tt",
toggle_neo_tree, toggle_neo_tree,
}, },
{
"<leader>a",
focus_neo_tree,
},
}, },
---@type neotree.Config? ---@type neotree.Config?
opts = { opts = {