From 6a152b6d752993c2468261a305afa4726fd544ff Mon Sep 17 00:00:00 2001
From: GitHub Actions
To add a new Neovim plugin, use npins
Use:
nix-shell -p npins
or nix shell nixpkgs#npins
Then run:
npins --name <plugin name> github <owner> <repo> -b <branch>
Be sure to replace any non-alphanumeric characters with -
for --name
For example
npins --name lazydev-nvim github folke laztdev.nvim -b main
You can now reference this plugin as a string.
config.vim.startPlugins = ["lazydev-nvim"];
+
To add a new Neovim plugin, use npins
Use:
nix-shell -p npins
or nix shell nixpkgs#npins
Then run:
npins add --name <plugin name> github <owner> <repo> -b <branch>
Be sure to replace any non-alphanumeric characters with -
for --name
For example
npins add --name lazydev-nvim github folke lazydev.nvim -b main
You can now reference this plugin as a string.
config.vim.startPlugins = ["lazydev-nvim"];
Most plugins is initialized with a call to require('plugin').setup({...})
.
We use a special function that lets you easily add support for such setup
options in a modular way: mkPluginSetupOption
.
Once you have added the source of the plugin as shown above, you can define the setup options like this:
# in modules/.../your-plugin/your-plugin.nix