feat(neo-tree): add mapping to focus tree
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user