What's the best practice for developing neovim plugins in Lua?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nvim-docker

  • I don't remember where I got this code from, but in the plug-in i'm working on, I have the ,w binding set to reload the package. That way, when I make a change I just use that keybinding to reload my changes instead of closing and reopening neovim. Here's the file that sets that up: https://github.com/dgrbrady/nvim-docker/blob/main/dev/init.lua Replace the package name on line 4 and the function call on line 24 with your specific code, then execute :luafile dev/init.lua to load that file to enable the keybinding. you only have to do this once

  • nvim-lua-guide

    Discontinued A guide to using Lua in Neovim

  • If you're interested in a shorter form article, you can use this guide for tons of great info about neovim + lua: https://github.com/nanotee/nvim-lua-guide (which I frequently recommend to people when they ask what they should know).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • nvim-example-lua-plugin

    A simple Neovim Lua plugin using the Lua embedded in Neovim, suitable as a template.

  • Example plugin: https://github.com/jacobsimpson/nvim-example-lua-plugin

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts