Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notomo/optpack.nvim
Neovim plugin manager that uses only opt packages
https://github.com/notomo/optpack.nvim
neovim neovim-plugin
Last synced: 1 day ago
JSON representation
Neovim plugin manager that uses only opt packages
- Host: GitHub
- URL: https://github.com/notomo/optpack.nvim
- Owner: notomo
- License: mit
- Created: 2021-10-02T13:57:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T11:38:05.000Z (3 days ago)
- Last Synced: 2024-11-15T12:29:55.743Z (3 days ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 277 KB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# optpack.nvim
This is a neovim plugin manager that uses only opt package.
## Example
```lua
local pack_dir = vim.fn.stdpath("data") .. "/optpack.nvim"
vim.opt.packpath:prepend(pack_dir)
local manager_dir = pack_dir .. "/pack/optpack/opt/optpack.nvim"
local initializing = vim.fn.isdirectory(manager_dir) ~= 1
if initializing then
vim.cmd["!"]({ args = { "git", "clone", "https://github.com/notomo/optpack.nvim", manager_dir } })
endvim.cmd.packadd("optpack.nvim")
local optpack = require("optpack")-- add some plugins
optpack.add("notomo/optpack.nvim")
optpack.add("notomo/ignored", { enabled = false })
optpack.add("notomo/gesture.nvim", {
load_on = { modules = { "gesture" } }, -- load on `require("gesture")`
hooks = {
post_add = function()
-- mapping
end,
post_load = function()
-- setting after loading
end,
},
})
optpack.add("notomo/vusted", {
fetch = { depth = 0 }, -- fetch including history
})if initializing then
optpack.update()
end
```