smilhey / cabinet.nvim

Cabinet is a plugin for Neovim that allows you to manage your buffers in drawers.
MIT License
23 stars 2 forks source link

a few reports from initial usage #1

Closed i3d closed 5 months ago

i3d commented 7 months ago

This section seems a bit of problematic

return {
    "smilhey/cabinet", 
    config = function () 
        local cabinet = require("cabinet")
        cabinet:setup()
    end
}

The package name probably is missing .nvim. The setup also seems require a non-nil table, or it will error out.

Also, another thing maybe to improve is that if there is only one drawer, delete it will result in error.

smilhey commented 7 months ago

Hello, the last commit should address the issues with setup being called without argument and deleting the last drawer. Tell me if you still experience the issue. What makes you think the package name is missing nvim ? The module name should be dictated by the directory name under lua/

unphased commented 7 months ago

I just made a PR to address the issue. @smilhey you renamed your repo from cabinet to cabinet.nvim so now lazy will fail to fetch it if you use the snippet here, because it is not using the new github repo name

smilhey commented 7 months ago

Oh yeah I thought @i3d was talking about the module name. I also changed it in the config example