leanpack.nvim offers multiple installation methods. Choose the one that best fits your workflow.
- Neovim 0.12.0 or later
- Git (required by vim.pack)
This is the recommended method for most users. Add this to the top of your init.lua:
-- Setup leanpack.nvim plugin manager
vim.pack.add({ { src = "https://github.com/ntk148v/leanpack.nvim" } })
require("leanpack").setup()This method:
- Automatically installs leanpack.nvim if not present
- Works on fresh systems without manual setup
- Can be combined with other bootstrap managers
If you already have Neovim set up:
-- Install with vim.pack directly
vim.pack.add({ 'ntk148v/leanpack.nvim' })
-- Then setup in your init.lua
require("leanpack").setup()use 'ntk148v/leanpack.nvim'{ 'ntk148v/leanpack.nvim' }Plug 'ntk148v/leanpack.nvim'After installation, leanpack.nvim will manage plugins in:
~/.local/share/nvim/
└── site/
├── pack/
│ ├── leanpack/
│ │ ├── opt/
│ │ │ └── leanpack.nvim/ (leanpack.nvim itself)
│ │ └── start/
│ │ └── ... (eager-loaded plugins)
│ └── nvim-pack/ (managed plugins)
│ ├── opt/ (lazy plugins)
│ └── start/ (eager plugins)
└── lua/
└── plugin/ (compiled Lua)
To update leanpack.nvim itself:
:Leanpack update leanpack.nvimOr via Lua:
vim.pack.add({ 'ntk148v/leanpack.nvim', update = true })To uninstall leanpack.nvim:
rm -rf ~/.local/share/nvim/site/pack/leanpack/opt/leanpack.nvimNote: This will not remove your other plugins. To clean those, use :Leanpack clean.
- Getting Started - Quick setup guide
- Configuration - Customize your setup