Skip to content

Commit e182774

Browse files
author
Andrew Ferrier
committed
fix!: Require NeoVim 0.8+
Although nvim-treesitter is technically an optional dependency, tests will not run to completion on 0.7 because nvim-treesitter no longer supports it. So we've decided to remove support for NeoVim 0.7 to remove the maintenance overhead and complexity of supporting only non-treesitter behaviour for 0.7.
1 parent f8e7abd commit e182774

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/unittest.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
neovim_branch: ['v0.7.2', 'v0.8.0', 'nightly']
15+
neovim_branch: ['v0.8.0', 'nightly']
1616
runs-on: ubuntu-latest
1717

1818
steps:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ It provides various improvements:
7777

7878
## Installation
7979

80-
**Requires NeoVim 0.7+.**
80+
**Requires NeoVim 0.8+.**
8181

8282
Optional dependency:
8383
[nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter). If this

lua/debugprint/init.lua

+9
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,13 @@ M.add_custom_filetypes = function(filetypes)
379379
vim.tbl_deep_extend("force", global_opts.filetypes, filetypes)
380380
end
381381

382+
if vim.fn.has("nvim-0.8.0") ~= 1 then
383+
vim.notify(
384+
"WARNING: debugprint.nvim is only compatible with NeoVim 0.8+",
385+
vim.log.levels.WARN
386+
)
387+
388+
return
389+
end
390+
382391
return M

0 commit comments

Comments
 (0)