Skip to content

Commit

Permalink
readme: small fixes.
Browse files Browse the repository at this point in the history
* Correctly state required neovim-version.
* Put resolved major version number into install-commands, leads to
  confusion otherwise.
  • Loading branch information
L3MON4D3 committed Jul 18, 2023
1 parent 1f72e43 commit 0b4950a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ https://user-images.githubusercontent.com/41961280/122515860-5179fa00-d00e-11eb-
- 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).

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

# Setup
Expand All @@ -34,7 +34,7 @@ Neovim >= 0.5 (extmarks)
use({
"L3MON4D3/LuaSnip",
-- follow latest release.
tag = "v<CurrentMajor>.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
tag = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
-- install jsregexp (optional!:).
run = "make install_jsregexp"
})
Expand All @@ -44,15 +44,15 @@ Neovim >= 0.5 (extmarks)
{
"L3MON4D3/LuaSnip",
-- follow latest release.
version = "<CurrentMajor>.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
version = "2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
-- install jsregexp (optional!).
build = "make install_jsregexp"
}
```
**vim-plug**:
```vim
" follow latest release and install jsregexp.
Plug 'L3MON4D3/LuaSnip', {'tag': 'v<CurrentMajor>.*', 'do': 'make install_jsregexp'} " Replace <CurrentMajor> by the latest released major (first number of latest release)
Plug 'L3MON4D3/LuaSnip', {'tag': 'v2.*', 'do': 'make install_jsregexp'} " Replace <CurrentMajor> by the latest released major (first number of latest release)
```
Check the `Releases`-section to the right for the latest major version.

Expand Down

0 comments on commit 0b4950a

Please # to comment.