More plugin configuration

This commit is contained in:
Chris
2025-04-14 11:38:42 +01:00
parent f2f3b1812a
commit 01164c6d8b
14 changed files with 211 additions and 35 deletions

View File

@@ -13,8 +13,19 @@ return {
keys = {
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
},
opts = {
filesystem = {
opts = 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 },
})
opts.filesystem = {
window = {
mappings = {
['\\'] = 'close_window',
@@ -23,6 +34,6 @@ return {
filtered_items = {
hide_dotfiles = false,
},
},
},
}
end,
}