Skip to content

Commit 0b4950a

Browse files
committed
readme: small fixes.
* Correctly state required neovim-version. * Put resolved major version number into install-commands, leads to confusion otherwise.
1 parent 1f72e43 commit 0b4950a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ https://user-images.githubusercontent.com/41961280/122515860-5179fa00-d00e-11eb-
2323
- Snippets that make use of the entire functionality of this plugin have to be defined in Lua (but 95% of snippets can be written in lsp-syntax).
2424

2525
# Requirements
26-
Neovim >= 0.5 (extmarks)
26+
Neovim >= 0.7 (extmarks)
2727
`jsregexp` for lsp-snippet-transformations (see [here](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#transformations) for some tips on installing it).
2828

2929
# Setup
@@ -34,7 +34,7 @@ Neovim >= 0.5 (extmarks)
3434
use({
3535
"L3MON4D3/LuaSnip",
3636
-- follow latest release.
37-
tag = "v<CurrentMajor>.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
37+
tag = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
3838
-- install jsregexp (optional!:).
3939
run = "make install_jsregexp"
4040
})
@@ -44,15 +44,15 @@ Neovim >= 0.5 (extmarks)
4444
{
4545
"L3MON4D3/LuaSnip",
4646
-- follow latest release.
47-
version = "<CurrentMajor>.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
47+
version = "2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
4848
-- install jsregexp (optional!).
4949
build = "make install_jsregexp"
5050
}
5151
```
5252
**vim-plug**:
5353
```vim
5454
" follow latest release and install jsregexp.
55-
Plug 'L3MON4D3/LuaSnip', {'tag': 'v<CurrentMajor>.*', 'do': 'make install_jsregexp'} " Replace <CurrentMajor> by the latest released major (first number of latest release)
55+
Plug 'L3MON4D3/LuaSnip', {'tag': 'v2.*', 'do': 'make install_jsregexp'} " Replace <CurrentMajor> by the latest released major (first number of latest release)
5656
```
5757
Check the `Releases`-section to the right for the latest major version.
5858

0 commit comments

Comments
 (0)