Skip to content

A simple "Hello World" Neovim plugin demonstrating basic plugin development. Adds a `:HelloWorld` command and customizable keymapping. Perfect for beginners learning Neovim plugin creation. For a detailed guide, check out the link below

License

Notifications You must be signed in to change notification settings

goncaloalves/neovim-plugin-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

neovim-plugin-hello-world

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.

Features

  • Adds a :HelloWorld command to Neovim
  • Prints "Hello from Neovim!" when the command is executed

Installation

Using lazy.nvim

Add the following to your Neovim configuration:

{
  "goncaloalves/neovim-plugin-hello-world",
  opts={}
}

Usage

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.

Configuration

This plugin allow a specific keymap to be configured. Just pass a keymap variable in the opts:

opts = {
      keymap = "<leader>hy",
},

Development

To work on this plugin:

  1. Clone the repository:
    git clone https://github.com/goncaloalves/neovim-plugin-hello-world.git
    
  2. Open the project in Neovim
  3. Make your changes
  4. Test the plugin by sourcing the init.lua file or restarting Neovim

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A simple "Hello World" Neovim plugin demonstrating basic plugin development. Adds a `:HelloWorld` command and customizable keymapping. Perfect for beginners learning Neovim plugin creation. For a detailed guide, check out the link below

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages