Basic template for LazyVim plugin π€
Create new lua file in ~/.config/nvim/lua/plugins
return {
{
dir = '~/starter.nvim', -- path to your plugin directory
name = "starter",
config = function()
require("starter").setup()
end
},
}
Intsead of just lua/starter.lua
you can have lua/starter/init.lua
β Don't mix those two conventions, structure
lua/starter/starter.lua
does not work
starter.nvim
βββ lua
Β Β βββ starter
Β Β βββ init.lua
3 directories, 1 file