nanotee / nvim-lua-guide

A guide to using Lua in Neovim
5.83k stars 220 forks source link

Adds create-nvim-plugin #111

Open KaiSpencer opened 2 years ago

KaiSpencer commented 2 years ago

I created this simple CLI tool to easily scaffold a named lua plugin, setting up all the necessary files, directories etc.

justinmk commented 2 years ago

Why? Creating a Nvim Lua plugin is a matter of creating a single file on the user's runtimepath: lua/foo.lua. A doc/foo.txt is also recommended. But, steering users towards a nodejs script to create such things makes it seem far more complex than it is or should be, while hiding the important and simple lesson of the real structure of a plugin.

nanotee commented 2 years ago

I believe such a tool would be better suited for a more general-purpose list like awesome-neovim rather than this guide