2022-03-25 12:57:43 +00:00
|
|
|
require("neo-tree").setup({
|
|
|
|
window = {
|
|
|
|
position = "float",
|
|
|
|
},
|
|
|
|
filesystem = {
|
|
|
|
filtered_items = {
|
|
|
|
hide_dotfiles = false,
|
|
|
|
hide_gitignored = false,
|
2022-03-20 04:22:56 +00:00
|
|
|
},
|
2022-04-04 00:45:03 +00:00
|
|
|
hijack_netrw_behavior = "open_current",
|
2022-04-03 23:46:45 +00:00
|
|
|
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,
|
|
|
|
},
|
2022-03-20 04:22:56 +00:00
|
|
|
},
|
|
|
|
})
|