From 402ee6c6ec8ea44b22330446c8fb4e615fd3953e Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Fri, 3 Apr 2026 12:41:56 +0300 Subject: [PATCH] feat(ALL): soft deprecate Neovim<0.10 --- .github/workflows/quality-control.yml | 2 +- CHANGELOG.md | 6 ++++++ README.md | 2 +- doc/mini-nvim.txt | 2 +- lua/mini/ai.lua | 9 +++++++++ lua/mini/align.lua | 9 +++++++++ lua/mini/animate.lua | 9 +++++++++ lua/mini/base16.lua | 9 +++++++++ lua/mini/basics.lua | 9 +++++++++ lua/mini/bracketed.lua | 9 +++++++++ lua/mini/bufremove.lua | 9 +++++++++ lua/mini/clue.lua | 9 +++++++++ lua/mini/cmdline.lua | 9 +++++++++ lua/mini/colors.lua | 9 +++++++++ lua/mini/comment.lua | 9 +++++++++ lua/mini/completion.lua | 9 +++++++++ lua/mini/cursorword.lua | 9 +++++++++ lua/mini/deps.lua | 9 +++++++++ lua/mini/diff.lua | 9 +++++++++ lua/mini/doc.lua | 9 +++++++++ lua/mini/extra.lua | 9 +++++++++ lua/mini/files.lua | 9 +++++++++ lua/mini/fuzzy.lua | 9 +++++++++ lua/mini/git.lua | 9 +++++++++ lua/mini/hipatterns.lua | 9 +++++++++ lua/mini/hues.lua | 9 +++++++++ lua/mini/icons.lua | 9 +++++++++ lua/mini/indentscope.lua | 9 +++++++++ lua/mini/init.lua | 2 +- lua/mini/jump.lua | 9 +++++++++ lua/mini/jump2d.lua | 9 +++++++++ lua/mini/keymap.lua | 9 +++++++++ lua/mini/map.lua | 9 +++++++++ lua/mini/misc.lua | 9 +++++++++ lua/mini/move.lua | 9 +++++++++ lua/mini/notify.lua | 9 +++++++++ lua/mini/operators.lua | 9 +++++++++ lua/mini/pairs.lua | 9 +++++++++ lua/mini/pick.lua | 9 +++++++++ lua/mini/sessions.lua | 9 +++++++++ lua/mini/snippets.lua | 9 +++++++++ lua/mini/splitjoin.lua | 9 +++++++++ lua/mini/starter.lua | 9 +++++++++ lua/mini/statusline.lua | 9 +++++++++ lua/mini/surround.lua | 9 +++++++++ lua/mini/tabline.lua | 9 +++++++++ lua/mini/test.lua | 9 +++++++++ lua/mini/trailspace.lua | 9 +++++++++ lua/mini/visits.lua | 9 +++++++++ 49 files changed, 406 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quality-control.yml b/.github/workflows/quality-control.yml index da681ae4..ac56cfd3 100644 --- a/.github/workflows/quality-control.yml +++ b/.github/workflows/quality-control.yml @@ -41,7 +41,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - neovim_version: [ 'v0.9.5', 'v0.10.4', 'v0.11.7', 'v0.12.0', 'nightly' ] + neovim_version: [ 'v0.10.4', 'v0.11.7', 'v0.12.0', 'nightly' ] include: - os: macos-latest neovim_version: v0.12.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 92916ea4..21913b28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ There are following change types: # Version 0.18.0-dev +## All + +### Refine + +- Soft deprecate support for Neovim 0.9. It will be fully deprecated in next release. + ## mini.base16 ### Expand diff --git a/README.md b/README.md index 6da79f1b..a40e4d5a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ### All-in-one plugin -Library of 40+ independent Lua modules improving overall [Neovim](https://github.com/neovim/neovim) (version 0.9 and higher) experience with minimal effort. They all share same configuration approaches and general design principles. +Library of 40+ independent Lua modules improving overall [Neovim](https://github.com/neovim/neovim) (version 0.10 and higher) experience with minimal effort. They all share same configuration approaches and general design principles. Think about this project as "Swiss Army knife" among Neovim plugins: it has many different independent tools (modules) suitable for most common tasks. Each module can be used separately without any startup and usage overhead. diff --git a/doc/mini-nvim.txt b/doc/mini-nvim.txt index 1dc24635..cab855b0 100644 --- a/doc/mini-nvim.txt +++ b/doc/mini-nvim.txt @@ -5,7 +5,7 @@ MIT License Copyright (c) 2021 Evgeni Chasnovski ------------------------------------------------------------------------------ *mini.nvim-table-of-contents* |mini.nvim| is a collection of minimal, independent, and fast Lua modules -dedicated to improve Neovim (version 0.9 and higher) experience. Each +dedicated to improve Neovim (version 0.10 and higher) experience. Each module can be considered as a separate sub-plugin. Table of contents: diff --git a/lua/mini/ai.lua b/lua/mini/ai.lua index d74a5879..356583f4 100644 --- a/lua/mini/ai.lua +++ b/lua/mini/ai.lua @@ -419,6 +419,15 @@ local H = {} --- require('mini.ai').setup({}) -- replace {} with your config table --- < MiniAi.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.ai) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniAi = MiniAi diff --git a/lua/mini/align.lua b/lua/mini/align.lua index e774486d..108ce606 100644 --- a/lua/mini/align.lua +++ b/lua/mini/align.lua @@ -434,6 +434,15 @@ local H = {} --- require('mini.align').setup({}) -- replace {} with your config table --- < MiniAlign.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.align) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniAlign = MiniAlign diff --git a/lua/mini/animate.lua b/lua/mini/animate.lua index 66cb718b..1043096f 100644 --- a/lua/mini/animate.lua +++ b/lua/mini/animate.lua @@ -109,6 +109,15 @@ local H = {} --- require('mini.animate').setup({}) -- replace {} with your config table --- < MiniAnimate.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.animate) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniAnimate = MiniAnimate diff --git a/lua/mini/base16.lua b/lua/mini/base16.lua index 9cd57f55..6c960a63 100644 --- a/lua/mini/base16.lua +++ b/lua/mini/base16.lua @@ -167,6 +167,15 @@ local H = {} --- -- needs `palette` field present --- < MiniBase16.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.base16) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniBase16 = MiniBase16 diff --git a/lua/mini/basics.lua b/lua/mini/basics.lua index 7e90f7a3..c1640487 100644 --- a/lua/mini/basics.lua +++ b/lua/mini/basics.lua @@ -74,6 +74,15 @@ local H = {} --- require('mini.basics').setup({}) -- replace {} with your config table --- < MiniBasics.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.basics) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniBasics = MiniBasics diff --git a/lua/mini/bracketed.lua b/lua/mini/bracketed.lua index 2b871044..5e48008f 100644 --- a/lua/mini/bracketed.lua +++ b/lua/mini/bracketed.lua @@ -111,6 +111,15 @@ local H = {} --- require('mini.bracketed').setup({}) -- replace {} with your config table --- < MiniBracketed.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.bracketed) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniBracketed = MiniBracketed diff --git a/lua/mini/bufremove.lua b/lua/mini/bufremove.lua index 396336f9..f35666cb 100644 --- a/lua/mini/bufremove.lua +++ b/lua/mini/bufremove.lua @@ -58,6 +58,15 @@ local H = {} --- require('mini.bufremove').setup({}) -- replace {} with your config table --- < MiniBufremove.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.bufremove) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniBufremove = MiniBufremove diff --git a/lua/mini/clue.lua b/lua/mini/clue.lua index 981656b9..da46dca6 100644 --- a/lua/mini/clue.lua +++ b/lua/mini/clue.lua @@ -481,6 +481,15 @@ local H = {} --- -- needs `triggers` field present --- < MiniClue.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.clue) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniClue = MiniClue diff --git a/lua/mini/cmdline.lua b/lua/mini/cmdline.lua index f4626201..620ed02f 100644 --- a/lua/mini/cmdline.lua +++ b/lua/mini/cmdline.lua @@ -97,6 +97,15 @@ local H = {} --- require('mini.cmdline').setup({}) -- replace {} with your config table --- < MiniCmdline.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.cmdline) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniCmdline = MiniCmdline diff --git a/lua/mini/colors.lua b/lua/mini/colors.lua index 378ec32a..6b16e6fc 100644 --- a/lua/mini/colors.lua +++ b/lua/mini/colors.lua @@ -679,6 +679,15 @@ local H = {} --- require('mini.colors').setup({}) -- replace {} with your config table --- < MiniColors.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.colors) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniColors = MiniColors diff --git a/lua/mini/comment.lua b/lua/mini/comment.lua index 54fbebf0..f127930d 100644 --- a/lua/mini/comment.lua +++ b/lua/mini/comment.lua @@ -62,6 +62,15 @@ local H = {} --- require('mini.comment').setup({}) -- replace {} with your config table --- < MiniComment.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.comment) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniComment = MiniComment diff --git a/lua/mini/completion.lua b/lua/mini/completion.lua index ec81e1c4..0d06d0f0 100644 --- a/lua/mini/completion.lua +++ b/lua/mini/completion.lua @@ -277,6 +277,15 @@ local H = {} --- require('mini.completion').setup({}) -- replace {} with your config table --- < MiniCompletion.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.completion) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniCompletion = MiniCompletion diff --git a/lua/mini/cursorword.lua b/lua/mini/cursorword.lua index 9c374a88..9358c07d 100644 --- a/lua/mini/cursorword.lua +++ b/lua/mini/cursorword.lua @@ -90,6 +90,15 @@ local H = {} --- require('mini.cursorword').setup({}) -- replace {} with your config table --- < MiniCursorword.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.cursorword) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniCursorword = MiniCursorword diff --git a/lua/mini/deps.lua b/lua/mini/deps.lua index cd5517b8..2e5f2698 100644 --- a/lua/mini/deps.lua +++ b/lua/mini/deps.lua @@ -357,6 +357,15 @@ local H = {} --- require('mini.deps').setup({}) -- replace {} with your config table --- < MiniDeps.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.deps) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniDeps = MiniDeps diff --git a/lua/mini/diff.lua b/lua/mini/diff.lua index fddf111e..726a5876 100644 --- a/lua/mini/diff.lua +++ b/lua/mini/diff.lua @@ -249,6 +249,15 @@ local H = {} --- require('mini.diff').setup({}) -- replace {} with your config table --- < MiniDiff.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.diff) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniDiff = MiniDiff diff --git a/lua/mini/doc.lua b/lua/mini/doc.lua index a56a9de1..4aa0869d 100644 --- a/lua/mini/doc.lua +++ b/lua/mini/doc.lua @@ -148,6 +148,15 @@ local H = {} --- require('mini.doc').setup({}) -- replace {} with your config table --- < MiniDoc.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.doc) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniDoc = MiniDoc diff --git a/lua/mini/extra.lua b/lua/mini/extra.lua index b8732cc7..50461a7b 100644 --- a/lua/mini/extra.lua +++ b/lua/mini/extra.lua @@ -82,6 +82,15 @@ local H = {} --- require('mini.extra').setup({}) -- replace {} with your config table --- < MiniExtra.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.extra) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniExtra = MiniExtra diff --git a/lua/mini/files.lua b/lua/mini/files.lua index 169c16fe..98aaab3f 100644 --- a/lua/mini/files.lua +++ b/lua/mini/files.lua @@ -563,6 +563,15 @@ local H = {} --- require('mini.files').setup({}) -- replace {} with your config table --- < MiniFiles.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.files) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniFiles = MiniFiles diff --git a/lua/mini/fuzzy.lua b/lua/mini/fuzzy.lua index b146a8e8..faee79b3 100644 --- a/lua/mini/fuzzy.lua +++ b/lua/mini/fuzzy.lua @@ -79,6 +79,15 @@ local H = {} --- require('mini.fuzzy').setup({}) -- replace {} with your config table --- < MiniFuzzy.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.fuzzy) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniFuzzy = MiniFuzzy diff --git a/lua/mini/git.lua b/lua/mini/git.lua index c98183d1..c356cb12 100644 --- a/lua/mini/git.lua +++ b/lua/mini/git.lua @@ -233,6 +233,15 @@ local H = {} --- require('mini.git').setup({}) -- replace {} with your config table --- < MiniGit.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.git) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniGit = MiniGit diff --git a/lua/mini/hipatterns.lua b/lua/mini/hipatterns.lua index c1cfd72e..80a82977 100644 --- a/lua/mini/hipatterns.lua +++ b/lua/mini/hipatterns.lua @@ -227,6 +227,15 @@ local H = {} --- -- needs `highlighters` field present --- < MiniHipatterns.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.hipatterns) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniHipatterns = MiniHipatterns diff --git a/lua/mini/hues.lua b/lua/mini/hues.lua index a218d31f..d7b3b2d4 100644 --- a/lua/mini/hues.lua +++ b/lua/mini/hues.lua @@ -155,6 +155,15 @@ local H = {} --- }) --- < MiniHues.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.hues) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniHues = MiniHues diff --git a/lua/mini/icons.lua b/lua/mini/icons.lua index fee6db29..84d5ffd7 100644 --- a/lua/mini/icons.lua +++ b/lua/mini/icons.lua @@ -183,6 +183,15 @@ local H = {} --- require('mini.icons').setup({}) -- replace {} with your config table --- < MiniIcons.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.icons) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniIcons = MiniIcons diff --git a/lua/mini/indentscope.lua b/lua/mini/indentscope.lua index faf235e7..0e362736 100644 --- a/lua/mini/indentscope.lua +++ b/lua/mini/indentscope.lua @@ -109,6 +109,15 @@ local H = {} --- require('mini.indentscope').setup({}) -- replace {} with your config table --- < MiniIndentscope.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.indentscope) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniIndentscope = MiniIndentscope diff --git a/lua/mini/init.lua b/lua/mini/init.lua index 281df546..7db9a43c 100644 --- a/lua/mini/init.lua +++ b/lua/mini/init.lua @@ -3,7 +3,7 @@ --- MIT License Copyright (c) 2021 Evgeni Chasnovski --- |mini.nvim| is a collection of minimal, independent, and fast Lua modules ---- dedicated to improve Neovim (version 0.9 and higher) experience. Each +--- dedicated to improve Neovim (version 0.10 and higher) experience. Each --- module can be considered as a separate sub-plugin. --- --- Table of contents: diff --git a/lua/mini/jump.lua b/lua/mini/jump.lua index 581b6386..6216b625 100644 --- a/lua/mini/jump.lua +++ b/lua/mini/jump.lua @@ -82,6 +82,15 @@ local H = {} --- require('mini.jump').setup({}) -- replace {} with your config table --- < MiniJump.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.jump) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniJump = MiniJump diff --git a/lua/mini/jump2d.lua b/lua/mini/jump2d.lua index 81568980..fee0393c 100644 --- a/lua/mini/jump2d.lua +++ b/lua/mini/jump2d.lua @@ -158,6 +158,15 @@ local H = {} --- require('mini.jump2d').setup({}) -- replace {} with your config table --- < MiniJump2d.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.jump2d) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniJump2d = MiniJump2d diff --git a/lua/mini/keymap.lua b/lua/mini/keymap.lua index ce9dff56..01a6eff8 100644 --- a/lua/mini/keymap.lua +++ b/lua/mini/keymap.lua @@ -205,6 +205,15 @@ local H = {} --- -- needs `keymap` field present --- < MiniKeymap.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.keymap) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniKeymap = MiniKeymap diff --git a/lua/mini/map.lua b/lua/mini/map.lua index e0a70862..d0e1288f 100644 --- a/lua/mini/map.lua +++ b/lua/mini/map.lua @@ -193,6 +193,15 @@ local H = {} --- require('mini.map').setup({}) -- replace {} with your config table --- < MiniMap.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.map) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniMap = MiniMap diff --git a/lua/mini/misc.lua b/lua/mini/misc.lua index b06884c7..4842cef6 100644 --- a/lua/mini/misc.lua +++ b/lua/mini/misc.lua @@ -63,6 +63,15 @@ local H = {} --- require('mini.misc').setup({}) -- replace {} with your config table --- < MiniMisc.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.misc) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniMisc = MiniMisc diff --git a/lua/mini/move.lua b/lua/mini/move.lua index 6c3327a9..0f33fd7a 100644 --- a/lua/mini/move.lua +++ b/lua/mini/move.lua @@ -89,6 +89,15 @@ local H = {} --- require('mini.move').setup({}) -- replace {} with your config table --- < MiniMove.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.move) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniMove = MiniMove diff --git a/lua/mini/notify.lua b/lua/mini/notify.lua index cdc5f67a..f029f748 100644 --- a/lua/mini/notify.lua +++ b/lua/mini/notify.lua @@ -104,6 +104,15 @@ local H = {} --- require('mini.notify').setup({}) -- replace {} with your config table --- < MiniNotify.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.notify) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniNotify = MiniNotify diff --git a/lua/mini/operators.lua b/lua/mini/operators.lua index 8b38841e..0cdb644c 100644 --- a/lua/mini/operators.lua +++ b/lua/mini/operators.lua @@ -170,6 +170,15 @@ local H = {} --- require('mini.operators').setup({}) -- replace {} with your config table --- < MiniOperators.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.operators) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniOperators = MiniOperators diff --git a/lua/mini/pairs.lua b/lua/mini/pairs.lua index f64f452b..03684eac 100644 --- a/lua/mini/pairs.lua +++ b/lua/mini/pairs.lua @@ -118,6 +118,15 @@ local H = {} --- require('mini.pairs').setup({}) -- replace {} with your config table --- < MiniPairs.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.pairs) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniPairs = MiniPairs diff --git a/lua/mini/pick.lua b/lua/mini/pick.lua index 55e18359..c5056e24 100644 --- a/lua/mini/pick.lua +++ b/lua/mini/pick.lua @@ -707,6 +707,15 @@ local H = {} --- require('mini.pick').setup({}) -- replace {} with your config table --- < MiniPick.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.pick) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniPick = MiniPick diff --git a/lua/mini/sessions.lua b/lua/mini/sessions.lua index ab7e3630..3ec97384 100644 --- a/lua/mini/sessions.lua +++ b/lua/mini/sessions.lua @@ -71,6 +71,15 @@ local H = {} --- require('mini.sessions').setup({}) -- replace {} with your config table --- < MiniSessions.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.sessions) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniSessions = MiniSessions diff --git a/lua/mini/snippets.lua b/lua/mini/snippets.lua index 9748cabb..1c16838a 100644 --- a/lua/mini/snippets.lua +++ b/lua/mini/snippets.lua @@ -572,6 +572,15 @@ local H = {} --- -- needs `snippets` field present --- < MiniSnippets.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.snippets) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniSnippets = MiniSnippets diff --git a/lua/mini/splitjoin.lua b/lua/mini/splitjoin.lua index d2a2f415..ea62f845 100644 --- a/lua/mini/splitjoin.lua +++ b/lua/mini/splitjoin.lua @@ -126,6 +126,15 @@ local H = {} --- require('mini.splitjoin').setup({}) -- replace {} with your config table --- < MiniSplitjoin.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.splitjoin) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniSplitjoin = MiniSplitjoin diff --git a/lua/mini/starter.lua b/lua/mini/starter.lua index 296f6e16..31784cbf 100644 --- a/lua/mini/starter.lua +++ b/lua/mini/starter.lua @@ -197,6 +197,15 @@ local H = {} --- require('mini.starter').setup({}) -- replace {} with your config table --- < MiniStarter.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.starter) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniStarter = MiniStarter diff --git a/lua/mini/statusline.lua b/lua/mini/statusline.lua index 5ce12ec5..1e9685b7 100644 --- a/lua/mini/statusline.lua +++ b/lua/mini/statusline.lua @@ -130,6 +130,15 @@ local H = {} --- require('mini.statusline').setup({}) -- replace {} with your config table --- < MiniStatusline.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.statusline) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniStatusline = MiniStatusline diff --git a/lua/mini/surround.lua b/lua/mini/surround.lua index d9651671..9fffa9c2 100644 --- a/lua/mini/surround.lua +++ b/lua/mini/surround.lua @@ -484,6 +484,15 @@ local H = {} --- require('mini.surround').setup({}) -- replace {} with your config table --- < MiniSurround.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.surround) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniSurround = MiniSurround diff --git a/lua/mini/tabline.lua b/lua/mini/tabline.lua index 514118fd..5247b7e5 100644 --- a/lua/mini/tabline.lua +++ b/lua/mini/tabline.lua @@ -90,6 +90,15 @@ local H = {} --- require('mini.tabline').setup({}) -- replace {} with your config table --- < MiniTabline.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.tabline) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniTabline = MiniTabline diff --git a/lua/mini/test.lua b/lua/mini/test.lua index f655b590..01ea84eb 100644 --- a/lua/mini/test.lua +++ b/lua/mini/test.lua @@ -155,6 +155,15 @@ local H = {} --- require('mini.test').setup({}) -- replace {} with your config table --- < MiniTest.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.test) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniTest = MiniTest diff --git a/lua/mini/trailspace.lua b/lua/mini/trailspace.lua index 489314fa..ccdbc94b 100644 --- a/lua/mini/trailspace.lua +++ b/lua/mini/trailspace.lua @@ -54,6 +54,15 @@ local H = {} --- require('mini.trailspace').setup({}) -- replace {} with your config table --- < MiniTrailspace.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.trailspace) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniTrailspace = MiniTrailspace diff --git a/lua/mini/visits.lua b/lua/mini/visits.lua index d0b0f7bd..6dd97644 100644 --- a/lua/mini/visits.lua +++ b/lua/mini/visits.lua @@ -364,6 +364,15 @@ local H = {} --- require('mini.visits').setup({}) -- replace {} with your config table --- < MiniVisits.setup = function(config) + -- TODO: Remove after Neovim=0.9 support is dropped + if vim.fn.has('nvim-0.10') == 0 then + vim.notify( + '(mini.visits) Neovim<0.10 is soft deprecated (module works but is not supported).' + .. " It will be deprecated after the next 'mini.nvim' release (module might not work)." + .. ' Please update your Neovim version.' + ) + end + -- Export module _G.MiniVisits = MiniVisits -- knotmirror 0.0.1