Skip to content

Commit 07ee1f1

Browse files
authored
docs(install): promote vim.pack instructions over mini.deps (#2005)
1 parent 84c75e7 commit 07ee1f1

1 file changed

Lines changed: 24 additions & 23 deletions

File tree

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ There are also some optional plugins that work with Neo-tree:
8888
- [s1n7ax/nvim-window-picker](https://github.com/s1n7ax/nvim-window-picker) for
8989
`_with_window_picker` keymaps.
9090

91-
92-
### mini.deps example:
91+
### vim.pack example (requires Neovim 0.12)
9392

9493
```lua
95-
local add = MiniDeps.add
96-
97-
add({
98-
source = 'nvim-neo-tree/neo-tree.nvim',
99-
checkout = 'v3.x',
100-
depends = {
101-
"nvim-lua/plenary.nvim",
102-
"MunifTanjim/nui.nvim",
103-
"nvim-tree/nvim-web-devicons", -- optional, but recommended
104-
}
94+
vim.pack.add({
95+
{
96+
src = 'https://github.com/nvim-neo-tree/neo-tree.nvim',
97+
version = vim.version.range('3')
98+
},
99+
-- dependencies
100+
"https://github.com/nvim-lua/plenary.nvim",
101+
"https://github.com/MunifTanjim/nui.nvim",
102+
-- optional, but recommended
103+
"https://github.com/nvim-tree/nvim-web-devicons",
105104
})
106105
```
107106

107+
108108
### lazy.nvim example:
109109

110110
```lua
@@ -191,22 +191,23 @@ use({
191191

192192
</details>
193193

194+
194195
<details>
195196
<summary>
196-
vim.pack example (Neovim v0.12, still in development at time of writing):
197+
mini.deps example:
197198
</summary>
198199

199200
```lua
200-
vim.pack.add({
201-
{
202-
src = 'https://github.com/nvim-neo-tree/neo-tree.nvim',
203-
version = vim.version.range('3')
204-
},
205-
-- dependencies
206-
"https://github.com/nvim-lua/plenary.nvim",
207-
"https://github.com/MunifTanjim/nui.nvim",
208-
-- optional, but recommended
209-
"https://github.com/nvim-tree/nvim-web-devicons",
201+
local add = MiniDeps.add
202+
203+
add({
204+
source = 'nvim-neo-tree/neo-tree.nvim',
205+
checkout = 'v3.x',
206+
depends = {
207+
"nvim-lua/plenary.nvim",
208+
"MunifTanjim/nui.nvim",
209+
"nvim-tree/nvim-web-devicons", -- optional, but recommended
210+
}
210211
})
211212
```
212213

0 commit comments

Comments
 (0)