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

Closed
opened 2026-04-03 17:21:07 +00:00 by llakala · 2 comments
llakala commented 2026-04-03 17:21:07 +00:00

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',
    },
  },
})
### 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 commented 2026-04-04 15:10:32 +00:00

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

note that the config has been changed to `vim.g.canola.delete.trash`
llakala commented 2026-04-05 21:15:48 +00:00

Thanks, working great!

Thanks, working great!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/canola-collection#40
No description provided.