Added snacks plugin by folke

This commit is contained in:
2025-08-12 01:59:29 +09:00
parent 29b269e54b
commit d9805a5ede
2 changed files with 41 additions and 0 deletions
+13
View File
@@ -18,4 +18,17 @@ return {
}
}
},
config = function (_, opts)
local function on_move(data)
Snacks.rename.on_rename_file(data.source, data.destination)
end
local events = require("neo-tree.events")
opts.event_handlers = opts.event_handlers or {}
vim.list_extend(opts.event_handlers, {
{ event = events.FILE_MOVED, handler = on_move },
{ event = events.FILE_RENAMED, handler = on_move },
})
require("neo-tree").setup(opts)
end
}