Skip to content

Commit 56b6869

Browse files
committed
docs: provide example for nvim < 0.9.0 plugin version configuration
1 parent c570ab1 commit 56b6869

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Quarto-nvim provides tools for working on [quarto](https://quarto.org/) manuscripts in Neovim.
44

5-
Quarto-nvim requires Neovim >= **v0.9.0** (https://github.com/neovim/neovim/releases/tag/stable).
6-
75
## Setup
86

97
You can install `quarto-nvim` from GitHub with your favourite Neovim plugin manager
@@ -30,6 +28,22 @@ Plugins and their configuration to look out for in this file are:
3028
}
3129
```
3230

31+
Quarto-nvim requires Neovim >= **v0.9.0** (<https://github.com/neovim/neovim/releases/tag/stable>).
32+
If you are unable to update Neovim, you can specify a specific version of the plugins
33+
involved instead of the latest stable version.
34+
How you do this will vary depending on your plugin manager, but you can see one example using `lazy.nvim` here:
35+
<https://github.com/jmbuhr/quarto-nvim-kickstarter/blob/nvim-0.8.3/lua/plugins/quarto.lua>
36+
37+
The `version = ...` lines to look out for are for the following plugins:
38+
39+
```lua
40+
{
41+
'quarto-dev/quarto-nvim',
42+
'jmbuhr/otter.nvim',
43+
'nvim-treesitter/nvim-treesitter'
44+
}
45+
```
46+
3347
## Usage
3448

3549
### Configure

plugin/quarto.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
if vim.fn.has("nvim-0.9.0") ~= 1 then
22
local msg =
3-
[[quarto-dev/quarto-nvim and jmbuhr/otter.nvim require Neovim version >= 0.9.0 (https://github.com/neovim/neovim/releases/tag/stable). Please upgrade to get access to the latest features and performance improvements.]]
3+
[[
4+
quarto-dev/quarto-nvim and jmbuhr/otter.nvim require Neovim version >= 0.9.0 (https://github.com/neovim/neovim/releases/tag/stable).
5+
If you are unable to update Neovim, you can specify a specific version of the plugins involved instead of the latest stable version.
6+
How you do this will vary depending on your plugin manager, but you can see one example using `lazy.nvim` here:
7+
<https://github.com/jmbuhr/quarto-nvim-kickstarter/blob/nvim-0.8.3/lua/plugins/quarto.lua>
8+
]]
49
local displayed = vim.notify_once(msg, vim.log.levels.WARN)
510
if displayed then
611
return msg

0 commit comments

Comments
 (0)