dorkhub

plugin-addict.nvim

For those who just can't help themselves

piersolenski
Lua15WTFPLupdated 9 months ago
git clone https://github.com/piersolenski/plugin-addict.nvim.gitpiersolenski/plugin-addict.nvim

🔌 plugin-addict.nvim

Ever find yourself constantly adding new plugins to your config? Yeah, me too. That's why I made plugin-addict.nvim - a dead simple plugin that does one thing: makes adding new plugins to your config blazingly fast™, so you can spend even less time working and more time tweaking your config.

✨ Features

  • Creates a new plugin config file with one command
  • Automatically names and places it in your plugins directory
  • Opens it for editing immediately
  • That's it. That's the plugin.
2025-08-15.at.14.06.37.mp4

🔩 Installation

Lazy

{
  "piersolenski/plugin-addict.nvim",
  opts = {},
  keys = {
    {
      "<leader>n",
      function()
        require("plugin-addict").new()
      end,
      desc = "New plugin config",
    },
  },
}

Packer

use({
  "piersolenski/plugin-addict.nvim",
  config = function()
    require("plugin-addict").setup()
  end,
})

⚙️ Configuration

plugin-addict.nvim works out of the box with no configuration necessary. If you want to customize the path for your plugins directory, you can use the setup function.

Here is the default configuration:

require("plugin-addict").setup({
  -- The path to your plugins directory
  plugins_path = vim.fn.stdpath("config") .. "/lua/plugins",
})

🚀 Usage

plugin-addict.nvim provides a command and Lua function to create new plugin files:

Lua API

-- Prompt for plugin name
require("plugin-addict").new()

-- Create plugin with specific name
require("plugin-addict").new("cool-plugin")

Commands

Prompt for plugin name: :PluginAddictNew [name]

Create file directly: :PluginAddictNew [name]

❓ FAQ:

Q: Did this really need to be a plugin?
A: No. But here we are.

Q: Why would I use this?
A: Because you're going to keep adding plugins anyway, might as well make it faster.

Q: Is this just enabling my addiction?
A: Yes. You're welcome.

🤓 About the author

As well as a passionate Vim enthusiast, I am a Full Stack Developer and Technical Lead from London, UK.

Whether it's to discuss a project, talk shop or just say hi, I'd love to hear from you!

Buy Me a Coffee at ko-fi.com

more like this

Scythe

SCYTHE is a lightweight, C#-based game engine focused on modifiability and rapid iteration using Raylib.

C#50

vim-dap

Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol

Vim Script50

search

search projects, people, and tags