Skip to content

Commit cc87af6

Browse files
committed
(all) Update installation instructions: add mini.deps, remove packer.
1 parent 2eecfdf commit cc87af6

38 files changed

+437
-461
lines changed

README.md

+18-7
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,31 @@ There are two branches to install from:
2929

3030
Here are code snippets for some common installation methods:
3131

32+
- Manually with `git clone` (compatible with [mini.deps](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-deps.md)):
33+
34+
```lua
35+
-- Put this at the top of 'init.lua'
36+
local path_package = vim.fn.stdpath('data') .. '/site'
37+
local mini_path = path_package .. '/pack/deps/start/mini.nvim'
38+
if not vim.loop.fs_stat(mini_path) then
39+
vim.cmd('echo "Installing `mini.nvim`" | redraw')
40+
local clone_cmd = {
41+
'git', 'clone', '--filter=blob:none',
42+
-- Uncomment next line to use 'stable' branch
43+
-- '--branch', 'stable',
44+
'https://github.com/echasnovski/mini.nvim', mini_path
45+
}
46+
vim.fn.system(clone_cmd)
47+
end
48+
```
49+
3250
- With [folke/lazy.nvim](https://github.com/folke/lazy.nvim):
3351

3452
| Branch | Code snippet |
3553
|--------|------------------------------------------------------|
3654
| Main | `{ 'echasnovski/mini.nvim', version = false },` |
3755
| Stable | `{ 'echasnovski/mini.nvim', version = '*' },` |
3856

39-
- With [wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim):
40-
41-
| Branch | Code snippet |
42-
|--------|------------------------------------------------------|
43-
| Main | `use 'echasnovski/mini.nvim'` |
44-
| Stable | `use { 'echasnovski/mini.nvim', branch = 'stable' }` |
45-
4657
- With [junegunn/vim-plug](https://github.com/junegunn/vim-plug):
4758

4859
| Branch | Code snippet |

readmes/mini-ai.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ There are two branches to install from:
6161
Here are code snippets for some common installation methods (use only one):
6262

6363
<details>
64-
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
64+
<summary>With <a href="https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-deps.md">mini.deps</a></summary>
6565
<table>
6666
<thead>
6767
<tr>
@@ -71,25 +71,23 @@ Here are code snippets for some common installation methods (use only one):
7171
</thead>
7272
<tbody>
7373
<tr>
74-
<td rowspan=2>'mini.nvim' library</td>
75-
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
74+
<td rowspan=2>'mini.nvim' library</td> <td>Main</td> <td rowspan=2><i>Follow recommended 'mini.deps' installation</i></td>
7675
</tr>
7776
<tr>
78-
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
77+
<td>Stable</td>
7978
</tr>
8079
<tr>
81-
<td rowspan=2>Standalone plugin</td>
82-
<td>Main</td> <td><code>{ 'echasnovski/mini.ai', version = false },</code></td>
80+
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>add('echasnovski/mini.ai')</code></td>
8381
</tr>
8482
<tr>
85-
<td>Stable</td> <td><code>{ 'echasnovski/mini.ai', version = '*' },</code></td>
83+
<td>Stable</td> <td><code>add({ source = 'echasnovski/mini.ai', checkout = 'stable' })</code></td>
8684
</tr>
8785
</tbody>
8886
</table>
8987
</details>
9088

9189
<details>
92-
<summary>With <a href="https://github.com/wbthomason/packer.nvim">wbthomason/packer.nvim</a></summary>
90+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
9391
<table>
9492
<thead>
9593
<tr>
@@ -100,16 +98,17 @@ Here are code snippets for some common installation methods (use only one):
10098
<tbody>
10199
<tr>
102100
<td rowspan=2>'mini.nvim' library</td>
103-
<td>Main</td> <td><code>use 'echasnovski/mini.nvim'</code></td>
101+
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
104102
</tr>
105103
<tr>
106-
<td>Stable</td> <td><code>use { 'echasnovski/mini.nvim', branch = 'stable' }</code></td>
104+
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
107105
</tr>
108106
<tr>
109-
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>use 'echasnovski/mini.ai'</code></td>
107+
<td rowspan=2>Standalone plugin</td>
108+
<td>Main</td> <td><code>{ 'echasnovski/mini.ai', version = false },</code></td>
110109
</tr>
111110
<tr>
112-
<td>Stable</td> <td><code>use { 'echasnovski/mini.ai', branch = 'stable' }</code></td>
111+
<td>Stable</td> <td><code>{ 'echasnovski/mini.ai', version = '*' },</code></td>
113112
</tr>
114113
</tbody>
115114
</table>

readmes/mini-align.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ There are two branches to install from:
5858
Here are code snippets for some common installation methods (use only one):
5959

6060
<details>
61-
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
61+
<summary>With <a href="https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-deps.md">mini.deps</a></summary>
6262
<table>
6363
<thead>
6464
<tr>
@@ -68,25 +68,23 @@ Here are code snippets for some common installation methods (use only one):
6868
</thead>
6969
<tbody>
7070
<tr>
71-
<td rowspan=2>'mini.nvim' library</td>
72-
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
71+
<td rowspan=2>'mini.nvim' library</td> <td>Main</td> <td rowspan=2><i>Follow recommended 'mini.deps' installation</i></td>
7372
</tr>
7473
<tr>
75-
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
74+
<td>Stable</td>
7675
</tr>
7776
<tr>
78-
<td rowspan=2>Standalone plugin</td>
79-
<td>Main</td> <td><code>{ 'echasnovski/mini.align', version = false },</code></td>
77+
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>add('echasnovski/mini.align')</code></td>
8078
</tr>
8179
<tr>
82-
<td>Stable</td> <td><code>{ 'echasnovski/mini.align', version = '*' },</code></td>
80+
<td>Stable</td> <td><code>add({ source = 'echasnovski/mini.align', checkout = 'stable' })</code></td>
8381
</tr>
8482
</tbody>
8583
</table>
8684
</details>
8785

8886
<details>
89-
<summary>With <a href="https://github.com/wbthomason/packer.nvim">wbthomason/packer.nvim</a></summary>
87+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
9088
<table>
9189
<thead>
9290
<tr>
@@ -97,16 +95,17 @@ Here are code snippets for some common installation methods (use only one):
9795
<tbody>
9896
<tr>
9997
<td rowspan=2>'mini.nvim' library</td>
100-
<td>Main</td> <td><code>use 'echasnovski/mini.nvim'</code></td>
98+
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
10199
</tr>
102100
<tr>
103-
<td>Stable</td> <td><code>use { 'echasnovski/mini.nvim', branch = 'stable' }</code></td>
101+
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
104102
</tr>
105103
<tr>
106-
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>use 'echasnovski/mini.align'</code></td>
104+
<td rowspan=2>Standalone plugin</td>
105+
<td>Main</td> <td><code>{ 'echasnovski/mini.align', version = false },</code></td>
107106
</tr>
108107
<tr>
109-
<td>Stable</td> <td><code>use { 'echasnovski/mini.align', branch = 'stable' }</code></td>
108+
<td>Stable</td> <td><code>{ 'echasnovski/mini.align', version = '*' },</code></td>
110109
</tr>
111110
</tbody>
112111
</table>

readmes/mini-animate.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ There are two branches to install from:
5454
Here are code snippets for some common installation methods (use only one):
5555

5656
<details>
57-
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
57+
<summary>With <a href="https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-deps.md">mini.deps</a></summary>
5858
<table>
5959
<thead>
6060
<tr>
@@ -64,25 +64,23 @@ Here are code snippets for some common installation methods (use only one):
6464
</thead>
6565
<tbody>
6666
<tr>
67-
<td rowspan=2>'mini.nvim' library</td>
68-
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
67+
<td rowspan=2>'mini.nvim' library</td> <td>Main</td> <td rowspan=2><i>Follow recommended 'mini.deps' installation</i></td>
6968
</tr>
7069
<tr>
71-
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
70+
<td>Stable</td>
7271
</tr>
7372
<tr>
74-
<td rowspan=2>Standalone plugin</td>
75-
<td>Main</td> <td><code>{ 'echasnovski/mini.animate', version = false },</code></td>
73+
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>add('echasnovski/mini.animate')</code></td>
7674
</tr>
7775
<tr>
78-
<td>Stable</td> <td><code>{ 'echasnovski/mini.animate', version = '*' },</code></td>
76+
<td>Stable</td> <td><code>add({ source = 'echasnovski/mini.animate', checkout = 'stable' })</code></td>
7977
</tr>
8078
</tbody>
8179
</table>
8280
</details>
8381

8482
<details>
85-
<summary>With <a href="https://github.com/wbthomason/packer.nvim">wbthomason/packer.nvim</a></summary>
83+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
8684
<table>
8785
<thead>
8886
<tr>
@@ -93,16 +91,17 @@ Here are code snippets for some common installation methods (use only one):
9391
<tbody>
9492
<tr>
9593
<td rowspan=2>'mini.nvim' library</td>
96-
<td>Main</td> <td><code>use 'echasnovski/mini.nvim'</code></td>
94+
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
9795
</tr>
9896
<tr>
99-
<td>Stable</td> <td><code>use { 'echasnovski/mini.nvim', branch = 'stable' }</code></td>
97+
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
10098
</tr>
10199
<tr>
102-
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>use 'echasnovski/mini.animate'</code></td>
100+
<td rowspan=2>Standalone plugin</td>
101+
<td>Main</td> <td><code>{ 'echasnovski/mini.animate', version = false },</code></td>
103102
</tr>
104103
<tr>
105-
<td>Stable</td> <td><code>use { 'echasnovski/mini.animate', branch = 'stable' }</code></td>
104+
<td>Stable</td> <td><code>{ 'echasnovski/mini.animate', version = '*' },</code></td>
106105
</tr>
107106
</tbody>
108107
</table>

readmes/mini-base16.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ There are two branches to install from:
8585
Here are code snippets for some common installation methods (use only one):
8686

8787
<details>
88-
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
88+
<summary>With <a href="https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-deps.md">mini.deps</a></summary>
8989
<table>
9090
<thead>
9191
<tr>
@@ -95,25 +95,23 @@ Here are code snippets for some common installation methods (use only one):
9595
</thead>
9696
<tbody>
9797
<tr>
98-
<td rowspan=2>'mini.nvim' library</td>
99-
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
98+
<td rowspan=2>'mini.nvim' library</td> <td>Main</td> <td rowspan=2><i>Follow recommended 'mini.deps' installation</i></td>
10099
</tr>
101100
<tr>
102-
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
101+
<td>Stable</td>
103102
</tr>
104103
<tr>
105-
<td rowspan=2>Standalone plugin</td>
106-
<td>Main</td> <td><code>{ 'echasnovski/mini.base16', version = false },</code></td>
104+
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>add('echasnovski/mini.base16')</code></td>
107105
</tr>
108106
<tr>
109-
<td>Stable</td> <td><code>{ 'echasnovski/mini.base16', version = '*' },</code></td>
107+
<td>Stable</td> <td><code>add({ source = 'echasnovski/mini.base16', checkout = 'stable' })</code></td>
110108
</tr>
111109
</tbody>
112110
</table>
113111
</details>
114112

115113
<details>
116-
<summary>With <a href="https://github.com/wbthomason/packer.nvim">wbthomason/packer.nvim</a></summary>
114+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
117115
<table>
118116
<thead>
119117
<tr>
@@ -124,16 +122,17 @@ Here are code snippets for some common installation methods (use only one):
124122
<tbody>
125123
<tr>
126124
<td rowspan=2>'mini.nvim' library</td>
127-
<td>Main</td> <td><code>use 'echasnovski/mini.nvim'</code></td>
125+
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
128126
</tr>
129127
<tr>
130-
<td>Stable</td> <td><code>use { 'echasnovski/mini.nvim', branch = 'stable' }</code></td>
128+
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
131129
</tr>
132130
<tr>
133-
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>use 'echasnovski/mini.base16'</code></td>
131+
<td rowspan=2>Standalone plugin</td>
132+
<td>Main</td> <td><code>{ 'echasnovski/mini.base16', version = false },</code></td>
134133
</tr>
135134
<tr>
136-
<td>Stable</td> <td><code>use { 'echasnovski/mini.base16', branch = 'stable' }</code></td>
135+
<td>Stable</td> <td><code>{ 'echasnovski/mini.base16', version = '*' },</code></td>
137136
</tr>
138137
</tbody>
139138
</table>

readmes/mini-basics.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ There are two branches to install from:
5050
Here are code snippets for some common installation methods (use only one):
5151

5252
<details>
53-
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
53+
<summary>With <a href="https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-deps.md">mini.deps</a></summary>
5454
<table>
5555
<thead>
5656
<tr>
@@ -60,25 +60,23 @@ Here are code snippets for some common installation methods (use only one):
6060
</thead>
6161
<tbody>
6262
<tr>
63-
<td rowspan=2>'mini.nvim' library</td>
64-
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
63+
<td rowspan=2>'mini.nvim' library</td> <td>Main</td> <td rowspan=2><i>Follow recommended 'mini.deps' installation</i></td>
6564
</tr>
6665
<tr>
67-
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
66+
<td>Stable</td>
6867
</tr>
6968
<tr>
70-
<td rowspan=2>Standalone plugin</td>
71-
<td>Main</td> <td><code>{ 'echasnovski/mini.basics', version = false },</code></td>
69+
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>add('echasnovski/mini.basics')</code></td>
7270
</tr>
7371
<tr>
74-
<td>Stable</td> <td><code>{ 'echasnovski/mini.basics', version = '*' },</code></td>
72+
<td>Stable</td> <td><code>add({ source = 'echasnovski/mini.basics', checkout = 'stable' })</code></td>
7573
</tr>
7674
</tbody>
7775
</table>
7876
</details>
7977

8078
<details>
81-
<summary>With <a href="https://github.com/wbthomason/packer.nvim">wbthomason/packer.nvim</a></summary>
79+
<summary>With <a href="https://github.com/folke/lazy.nvim">folke/lazy.nvim</a></summary>
8280
<table>
8381
<thead>
8482
<tr>
@@ -89,16 +87,17 @@ Here are code snippets for some common installation methods (use only one):
8987
<tbody>
9088
<tr>
9189
<td rowspan=2>'mini.nvim' library</td>
92-
<td>Main</td> <td><code>use 'echasnovski/mini.nvim'</code></td>
90+
<td>Main</td> <td><code>{ 'echasnovski/mini.nvim', version = false },</code></td>
9391
</tr>
9492
<tr>
95-
<td>Stable</td> <td><code>use { 'echasnovski/mini.nvim', branch = 'stable' }</code></td>
93+
<td>Stable</td> <td><code>{ 'echasnovski/mini.nvim', version = '*' },</code></td>
9694
</tr>
9795
<tr>
98-
<td rowspan=2>Standalone plugin</td> <td>Main</td> <td><code>use 'echasnovski/mini.basics'</code></td>
96+
<td rowspan=2>Standalone plugin</td>
97+
<td>Main</td> <td><code>{ 'echasnovski/mini.basics', version = false },</code></td>
9998
</tr>
10099
<tr>
101-
<td>Stable</td> <td><code>use { 'echasnovski/mini.basics', branch = 'stable' }</code></td>
100+
<td>Stable</td> <td><code>{ 'echasnovski/mini.basics', version = '*' },</code></td>
102101
</tr>
103102
</tbody>
104103
</table>

0 commit comments

Comments
 (0)