diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua index d5f7451..ffc333a 100644 --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -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 { "tt", toggle_neo_tree, }, + { + "a", + focus_neo_tree, + }, }, ---@type neotree.Config? opts = {