diff options
| author | user@node5.net <user@node5.net> | 2026-06-20 19:43:30 +0200 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2026-06-20 19:43:30 +0200 |
| commit | 03db97c14ea2e75657b38fd736132f5ee3fe68a6 (patch) | |
| tree | 48dc4f3f7a568f2236dc3c19f64b129e9c09dd71 /lua/neo-tree.lua | |
| parent | da2ecda464e558f85343cecaaf4e88b97f49dd03 (diff) | |
indent use new faster lib, auto toggle based on mode
Diffstat (limited to 'lua/neo-tree.lua')
| -rw-r--r-- | lua/neo-tree.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/neo-tree.lua b/lua/neo-tree.lua new file mode 100644 index 0000000..0750d6c --- /dev/null +++ b/lua/neo-tree.lua @@ -0,0 +1,22 @@ +require("neo-tree").setup({ + window = { + mappings = { + ["<F5>"] = "refresh", + ["o"] = "open", + } + }, + filesystem = { + window = { + mappings = { + ["O"] = { + command = function(state) + local node = state.tree:get_node() + local cmd = "thunar '" .. node.path .. "'" .. " > /dev/null 2>&1" + print("Opening: " .. node.path) -- Debug statement + os.execute(cmd) + end, + }, + }, + }, + }, +}) |
