feat(neo-tree): add mapping to focus tree
This commit is contained in:
@@ -7,6 +7,13 @@ local function toggle_neo_tree()
|
||||
})
|
||||
end
|
||||
|
||||
local function focus_neo_tree()
|
||||
require("neo-tree.command").execute({
|
||||
action = "focus",
|
||||
reveal = true,
|
||||
})
|
||||
end
|
||||
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
@@ -21,6 +28,10 @@ return {
|
||||
"<leader>tt",
|
||||
toggle_neo_tree,
|
||||
},
|
||||
{
|
||||
"<leader>a",
|
||||
focus_neo_tree,
|
||||
},
|
||||
},
|
||||
---@type neotree.Config?
|
||||
opts = {
|
||||
|
||||
Reference in New Issue
Block a user