A simple Neovim plugin that demonstrates how to create a basic "Hello World" functionality with a plugin in Neovim.
Here is my blog post about how I developed this plugin.
- Adds a
:HelloWorld
command to Neovim - Prints "Hello from Neovim!" when the command is executed
Using lazy.nvim
Add the following to your Neovim configuration:
{
"goncaloalves/neovim-plugin-hello-world",
opts={}
}
After installation, you can use the plugin by running the following command in Neovim:
:HelloWorld
Or use the default keymap: <leader>hw
This will print "Hello from Neovim!" to the command line.
This plugin allow a specific keymap to be configured. Just pass a keymap variable in the opts:
opts = {
keymap = "<leader>hy",
},
To work on this plugin:
- Clone the repository:
git clone https://github.com/goncaloalves/neovim-plugin-hello-world.git
- Open the project in Neovim
- Make your changes
- Test the plugin by sourcing the
init.lua
file or restarting Neovim
Contributions are welcome! Please feel free to submit a Pull Request.