Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hallerpatrick/vito.nvim
https://github.com/hallerpatrick/vito.nvim
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hallerpatrick/vito.nvim
- Owner: HallerPatrick
- Created: 2023-02-06T20:33:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T09:48:42.000Z (almost 2 years ago)
- Last Synced: 2024-12-08T18:04:57.646Z (17 days ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nvim-lua-plugin-template
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:- GitHub workflows to run linters and tests
- Minimal test setup
- EditorConfig
- A .luacheckrcTo get started writing a Lua plugin, I recommend reading the [nvim-lua-guide][nvim-lua-guide].
## Scope
Anything that the majority of plugin authors will want to have is in scope of
this starter template. Anything that is controversial is out-of-scope.---
The remainder of the README is text that can be preserved in your plugin:
---
## Development
### Run tests
Running tests requires [plenary.nvim][plenary] to be checked out in the parent directory of *this* repository.
You can then run:```bash
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"
```Or if you want to run a single test file:
```bash
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/path_to_file.lua {minimal_init = 'tests/minimal.vim'}"
```[nvim-lua-guide]: https://github.com/nanotee/nvim-lua-guide
[plenary]: https://github.com/nvim-lua/plenary.nvim