Skip to content

Commit

Permalink
chore: add nvim version requirement check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jun 4, 2024
1 parent ed3fdf2 commit ee0bd61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/rip-substitute/init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
local version = vim.version()
if version.major == 0 and version.minor < 10 then
vim.notify("nvim-rip-substitute requires at least nvim 0.10.", vim.log.levels.WARN)
return
end
--------------------------------------------------------------------------------

local M = {}
-- PERF do not import submodules here, since it results in them all being loaded
-- on initialization instead of lazy-loading them when needed.
Expand Down

0 comments on commit ee0bd61

Please sign in to comment.