A project for develop neovim (lua) plugin quicklly
-
Install repo to local
Clone with name you wanted, like:
example.nvim
git clone https://github.com/0x00-ketsu/plugin-dev.nvim.git example.nvim
-
Move to project folder
cd example.nvim
-
Start developing
nvim -c "set rtp+=."
-
Activate dev configurations in neovim
command
line:luafile dev/init.lua
-
Run
testcase
using keybind:de
-
Reload configurations with keybind:
dr
-
Rename project folder
-
Rename folder under dir
lua/
-
Rename plugin file
-
Replace
example
togreetings
in filedev/init.lua
-
Replace
example
togreetings
in filedev/tests.lua
-
Exercise
Rename project to
greetings.nvim
mv example.nvim greetings.nvim mv greetings.nvim/lua/example greetings.nvim/lua/greetings mv greetings.nvim/plugin/example.vim greetings/plugin/greetings.vim nvim greetings.nvim/dev/init.lua nvim greetings.nvim/dev/tests.lua
Edit file init.lua
under subdir dev/
If you want to publish this plugin, delete dir dev/
or add dev/
to .gitignore
file