lutobler / vis-commentary

Vis plugin for easy block commenting
MIT License
18 stars 6 forks source link

Why was vis-commentary.lua renamed to init.lua? #9

Closed ImagineInfinity closed 2 years ago

ImagineInfinity commented 3 years ago

Plugin does not work unless init.lua is renamed vis-commentary.lua

lutobler commented 3 years ago

See https://github.com/lutobler/vis-commentary/pull/8, I made this originally a while before standards formed on how plugins should be structured.

ingolemo commented 3 years ago

Ironically, the main reason I suggested this change is so that I wouldn't have to manually move the file around any more. You just go to your plug-ins directory, clone the whole repo (so that the code ends up at ~/.config/vis/plugins/vis-commentary/init.lua), and vis will find it just fine.

When you require("somthing") vis will check various places for a something.lua file but it will also check for a something/init.lua file too. See martanne/vis#800