feat: Commands for cmdline#14
Conversation
|
Heyyo @vunhatchuong, A relly cool addition ❤️ . But could you move the file inside a folder called duck maybe? Else the command.lua will conflict with other module with the same name if the user has any. After moving and resolving the comments, I think I'll merge Or it would be better to move the contents inside command.lua inside plugin/duck.lua. |
|
Yeah that's what I initially want to do but I was afraid maybe it will break some user or that's not what you want. To clarify, is this what you want? .
├── lua
│ └── duck
│ ├── command.lua
│ ├── duck.lua
│ └── init.lua
├── .github/
├── CHANGELOG.md
├── LICENSE
├── README.md
└── plugin
└── duck.luaI export |
|
This will be fine too. But if So it becomes; .
├── lua
│ └── duck.lua
├── .github/
├── CHANGELOG.md
├── LICENSE
├── README.md
└── plugin
└── duck.lua |
|
I think this is fine, what do you think? |
Add commands so people can lazy load with
cmd{ 'tamton-aquib/duck.nvim', cmd = "Duck", opts = {}, }Or use it in keymap
instead of