Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A starter template for a Neovim plugin written in Lua

NotificationsYou must be signed in to change notification settings

nvim-lua/nvim-lua-plugin-template

Repository files navigation

This repository is a template for Neovim plugins written in Lua.

The intention is that you use this template to create a new repository where you then adapt this readme and add your plugin code.The template includes the following:

To get started writing a Lua plugin, I recommend reading:help lua-guide and:help write-plugin.

Scope

Anything that the majority of plugin authors will want to have is in scope ofthis starter template. Anything that is controversial is out-of-scope.

Usage

  • ClickUse this template. Do not fork.
  • Renamenvim-lua-plugin-scm-1.rockspec and change thepackage nameto the name of your plugin.

Template License

The template itself is licensed under theMIT license.The template doesn't include a LICENSE file. You should add one after creating your repository.


The remainder of the README is text that can be preserved in your plugin:


Development

Run tests

Running tests requires either

to be installed1.

You can then run:

luarockstest --local# orbusted

Or if you want to run a single test file:

luarockstest spec/path_to_file.lua --local# orbusted spec/path_to_file.lua

If you see an error likemodule 'busted.runner' not found:

eval$(luarocks path --no-bin)

For this to work you need to have Lua 5.1 set as your default version forluarocks. If that's not the case you can pass--lua-version 5.1 to all theluarocks commands above.

Footnotes

  1. The test suite assumes thatnlua has been installedusing luarocks into~/.luarocks/bin/.

About

A starter template for a Neovim plugin written in Lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp