Skip to content

Commit

Permalink
fix(typescript): don't overwrite neo-tree events (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Jan 12, 2024
1 parent 8e964d3 commit 02d2f98
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lua/astrocommunity/pack/typescript/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,11 @@ return {
"nvim-neo-tree/neo-tree.nvim",
opts = function(_, opts)
local events = require "neo-tree.events"
opts.event_handlers = {
{
event = events.FILE_MOVED,
handler = on_file_remove,
},
{
event = events.FILE_RENAMED,
handler = on_file_remove,
},
}
if not opts.event_handlers then opts.event_handlers = {} end
vim.list_extend(opts.event_handlers, {
{ event = events.FILE_MOVED, handler = on_file_remove },
{ event = events.FILE_RENAMED, handler = on_file_remove },
})
end,
},
{
Expand Down

0 comments on commit 02d2f98

Please sign in to comment.