template.nvim is a neovim plugin that allows neovim users to <action>
.
- Includes a ready to go neovim plugin template
- Comes with a lint and test CI action
- Includes a Github action to auto generate vimdocs
- Comes with a ready to go README template
- Works with mkrepo
- Latest version of
neovim
-- Lazy
{
'2kabhishek/template.nvim',
cmd = 'TemplateHello',
-- Add your custom configs here, keep it blank for default configs (required)
opts = {},
-- Use this for local development
-- dir = '~/path-to/template.nvim',
},
-
Fork the
template.nvim
repo -
Update the plugin name, file names etc, change
template
toyour-plugin-name
-
Add the code required for your plugin,
- Code entrypoint is template.lua
- Add user configs to config.lua
- For adding commands and keybindngs use commands.lua
- Separate plugin logic into modules under modules dir
-
Add test code to the tests directory
-
Update the README
-
Tweak the docs action file to reflect your username, commit message and plugin name
- Generating vimdocs needs write access to actions (repo settings > actions > general > workflow permissions)
template.nvim can be configured using the following options:
template.setup({
name = 'template.nvim', -- Name to be greeted, 'World' by default
})
template.nvim
adds the following commands:
TemplateHello
: Shows a hello message with the confugred name.
It is recommended to use:
<leader>th,
forTemplateHello
NOTE: By default there are no configured keybindings.
Run :help template.txt
for more details.
Planning to add <feature/module>
.
- Setup repo
- Think real hard
- Start typing
template.nvim was inspired by nvim-plugin-template, I added some changes on top to make setting up a new plugin faster.
- The main challenges were
<issue/difficulty>
- I learned about
<learning/accomplishment>
- dots2k — Dev Environment
- nvim2k — Personalized Editor
- sway2k — Desktop Environment
- qute2k — Personalized Browser
- nerdy.nvim — Find nerd glyphs easily
- tdo.nvim — Fast and simple notes in Neovim
- termim.nvim — Neovim terminal improved
⭐ hit the star button if you found this useful ⭐
Source | Blog | Twitter | LinkedIn | More Links | Other Projects