mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2025-01-07 15:59:19 +00:00
20 lines
484 B
Lua
20 lines
484 B
Lua
require("neo-tree").setup({
|
|
window = {
|
|
position = "float",
|
|
},
|
|
filesystem = {
|
|
filtered_items = {
|
|
hide_dotfiles = false,
|
|
hide_gitignored = false,
|
|
},
|
|
hijack_netrw_behavior = "open_current",
|
|
commands = {
|
|
-- Override delete to use trash instead of rm
|
|
delete = function(state)
|
|
local path = state.tree:get_node().path
|
|
print(vim.fn.system({ "trash", vim.fn.fnameescape(path) }))
|
|
require("neo-tree.sources.manager").refresh(state.name)
|
|
end,
|
|
},
|
|
},
|
|
})
|