robin/lynn.nvim
native-first neovim plugin manager with charm
git clone https://git.robinwobin.dev/robin/lynn.nvim
82359de
main
lynn - native-first neovim plugin manager with charm
lynn is a small plugin manager built around neovim’s native vim.pack system.
it's designed to feel invisible - doing just enough to ease plugin use without layering on complexity.
ideal for native-first distros or anyone who prefers minimal configuration flow.
features
- manages plugins using
vim.pack - declarative plugin list stored in a single file
- integrates softly into the neovim lifecycle
why lynn?
- no bootstrapping code in your
init.lua - no abstraction over how plugins are actually loaded
- just a clear place to define what you want, and a helper to make it happen
- keeps your plugin specs simple
installation
-- init.lua or wherever vim . pack . add ( { { src ="https://github.com/comfysage/lynn.nvim" , name ="lynn" } } )
usage
- define your plugins in
lua/plugins.lua(or wherever you choose) - call
require("lynn").setup("plugins")from your config - lynn handles passing your plugins to
vim.pack.addand gives you a simple way to add lazy-loading
plugin spec
you can define your plugin spec like this:
{ "owner/repo" , -- or `url = "owner/repo"`/`url = "https://github.com/owner/repo"` name = "plugin-name" , -- optionally rename the plugin event = "BufEnter" , -- optional event }
as you can see there's no opts or config field.
instead lynn simply uses the :runtime command to source your configs in config/.
config
lynn automatically sources any files in config/ that match the plugin name.
this means you can simply create a mini.lua file in your config/ directory
and whenever mini.nvim is loaded lynn will source it for you.
this means you dont need to clutter your lua/plugins/ directory with config
functions anymore - they're just separate files.
requirements
- neovim 0.12+ (for
vim.pack) - git
footnote
lynn does not track plugin versions using a lockfile or manage updates automatically.
this is by design - the plugin is based entirely on the vim.pack engine.
for a working example, see sylvee. lynn is extracted from that project and maintained as a soft dependency.
1lynn - native-first neovim plugin manager with charm 2 3lynn is a small plugin manager built around neovim’s native `vim.pack` system. 4it's designed to feel invisible - doing just enough to ease plugin use without layering on complexity. 5ideal for native-first distros or anyone who prefers minimal configuration flow. 6 7###### features 8 9- manages plugins using `vim.pack` 10- declarative plugin list stored in a single file 11- integrates softly into the neovim lifecycle 12 13###### why lynn? 14 15- no bootstrapping code in your `init.lua` 16- no abstraction over how plugins are actually loaded 17- just a clear place to define what you want, and a helper to make it happen 18- keeps your plugin specs simple 19 20###### installation 21 22``` lua 23-- init.lua or wherever 24vim. pack . add ( { 25{ src = "https://github.com/comfysage/lynn.nvim" , name = "lynn" } 26}) 27``` 28 29###### usage 30 311. define your plugins in `lua/plugins.lua` (or wherever you choose) 322. call `require("lynn").setup("plugins")` from your config 333. lynn handles passing your plugins to `vim.pack.add` and gives you a simple way to add lazy-loading 34 35###### plugin spec 36 37you can define your plugin spec like this: 38 39``` lua 40{ 41"owner/repo" , -- or `url = "owner/repo"`/`url = "https://github.com/owner/repo"` 42name = "plugin-name" , -- optionally rename the plugin 43event = "BufEnter" , -- optional event 44} 45``` 46 47as you can see there's no `opts` or `config` field. 48instead lynn simply uses the `:runtime` command to source [your configs](#config) in `config/`. 49 50###### config 51 52lynn automatically sources any files in `config/` that match the plugin name. 53 54this means you can simply create a `mini.lua` file in your `config/` directory 55and whenever `mini.nvim` is loaded lynn will source it for you. 56 57this means you dont need to clutter your `lua/plugins/` directory with config 58functions anymore - they're just separate files. 59 60###### requirements 61 62- neovim 0.12+ (for `vim.pack`) 63- git 64 65###### footnote 66 67lynn does not track plugin versions using a lockfile or manage updates automatically. 68this is by design - the plugin is based entirely on the `vim.pack` engine. 69 70--- 71 72for a working example, see [sylvee](https://github.com/comfysage/sylvee). 73lynn is extracted from that project and maintained as a soft dependency.