config: nest trash under delete table #290

Closed
opened 2026-04-04 14:51:32 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-04-04 14:51:32 +00:00

When the trash adapter was extracted to canola-collection (#210), the
delete_to_trash top-level config key was removed but never replaced.

canola already has a delete table:

vim.g.canola = {
  delete = { wipe = false, recursive = false },
}

The trash flag belongs there:

vim.g.canola = {
  delete = { wipe = false, recursive = false, trash = false },
}

This is cleaner than the old delete_to_trash key — it groups all
delete-related behaviour and matches the canola config style.

Related: barrettruth/canola-collection#40

When the trash adapter was extracted to canola-collection (#210), the `delete_to_trash` top-level config key was removed but never replaced. canola already has a `delete` table: ```lua vim.g.canola = { delete = { wipe = false, recursive = false }, } ``` The trash flag belongs there: ```lua vim.g.canola = { delete = { wipe = false, recursive = false, trash = false }, } ``` This is cleaner than the old `delete_to_trash` key — it groups all delete-related behaviour and matches the canola config style. Related: barrettruth/canola-collection#40
Sign in to join this conversation.
No description provided.