You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Always check existence of dependencies (except for transitive dependencies) of upstream project you depend on:
localhas_telescope, telescope=pcall(require, 'telescope')
ifnothas_telescopethenerror('This plugins requires nvim-telescope/telescope.nvim')
end
If possible, provide a setup function for the user in your $GIT_ROOT/lua/yourpluginname.lua:
-- your imports...localM= {}
functionM.setup()
-- plugin setup code...end...returnM
-- The user can then use it (for example with packer)use { 'yourname/yourpluginname.nvim', config=function() require('yourpluginname').setup() end }
-- or alternatively somewhere in the lua or vim configrequire('yourpluginname').setup()
Using M for all members of a file (variables and functions) is best practice.
The text was updated successfully, but these errors were encountered:
Always check existence of dependencies (except for transitive dependencies) of upstream project you depend on:
If possible, provide a setup function for the user in your
$GIT_ROOT/lua/yourpluginname.lua
:Using
M
for all members of a file (variables and functions) is best practice.The text was updated successfully, but these errors were encountered: