bug: delete_to_trash in vim.g.canola does nothing #10

Closed
opened 2026-09-21 17:53:36 +00:00 by barrettruth · 2 comments
Owner

Original issue: barrettruth/canola-collection#40
Original author: llakala
Original date: 2026-04-03T17:21:07Z

Prerequisites

Neovim version

VIM v0.12.0
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

Operating system

NixOS unstable

Description

The docs state that to enable trash management, you just need to set vim.g.canola.delete_to_trash = true. Anecdotally this wasn't working for me. I tried searching both codebases for any mention of delete_to_trash, but I can't find anything that would check that config option. I assume there was a mistake in a recent commit.

Steps to reproduce

  1. Install both canola (on the canola branch) and canola-collection
  2. Enable vim.g.canola.delete_to_trash = true
  3. Try deleting something and see if it appears in the trash (it won't)

Minimal reproduction

I can reproduce with this config:

vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))()
require('lazy').setup({
  spec = {
    {
      'barrettruth/canola.nvim',
      branch = 'canola',
      init = function()
        vim.g.canola = {
          delete_to_trash = true
        }
      end,
    },
    {
      'barrettruth/canola-collection',
    },
  },
})
> Original issue: barrettruth/canola-collection#40 > Original author: `llakala` > Original date: 2026-04-03T17:21:07Z ### Prerequisites - [x] I have searched [existing issues](https://github.com/barrettruth/canola-collection/issues) - [x] I have updated to the latest version ### Neovim version ```text VIM v0.12.0 Build type: Release LuaJIT 2.1.1741730670 Run "nvim -V1 -v" for more info ``` ### Operating system NixOS unstable ### Description The docs state that to enable trash management, you just need to set `vim.g.canola.delete_to_trash` = true. Anecdotally this wasn't working for me. I tried searching both codebases for any mention of `delete_to_trash`, but I can't find anything that would check that config option. I assume there was a mistake in a recent commit. ### Steps to reproduce 1. Install both `canola` (on the canola branch) and `canola-collection` 2. Enable `vim.g.canola.delete_to_trash = true` 3. Try deleting something and see if it appears in the trash (it won't) ### Minimal reproduction ```lua I can reproduce with this config: vim.env.LAZY_STDPATH = '.repro' load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))() require('lazy').setup({ spec = { { 'barrettruth/canola.nvim', branch = 'canola', init = function() vim.g.canola = { delete_to_trash = true } end, }, { 'barrettruth/canola-collection', }, }, }) ```
barrettruth 2026-09-21 17:53:36 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

Original comment: barrettruth/canola-collection#40, comment 4187252063
Original author: barrettruth
Original date: 2026-04-04T15:10:32Z

note that the config has been changed to vim.g.canola.delete.trash

> Original comment: barrettruth/canola-collection#40, comment 4187252063 > Original author: `barrettruth` > Original date: 2026-04-04T15:10:32Z note that the config has been changed to `vim.g.canola.delete.trash`
Author
Owner

Original comment: barrettruth/canola-collection#40, comment 4189542160
Original author: llakala
Original date: 2026-04-05T21:15:48Z

Thanks, working great!

> Original comment: barrettruth/canola-collection#40, comment 4189542160 > Original author: `llakala` > Original date: 2026-04-05T21:15:48Z Thanks, working great!
Sign in to join this conversation.
No description provided.