Skip to content

Commit

Permalink
14:41:03
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvirtin committed Dec 26, 2021
1 parent 320f3d7 commit 6432e0a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/vgit/core/Versioning.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ function Versioning:new()
return setmetatable({
history = {
{
patch = 0,
minor = 0,
major = 0,
},
{
major = 0,
patch = 0,
minor = 1,
major = 0,
},
},
}, Versioning)
Expand All @@ -29,12 +31,14 @@ end
function Versioning:is_neovim_compatible()
local plugin_version = self:current()
local expected_neovim_version = {
patch = 0,
minor = 5,
major = 0,
}
local actual_neovim_version = vim.version()
if
actual_neovim_version.minor >= expected_neovim_version.minor
actual_neovim_version.patch >= expected_neovim_version.patch
and actual_neovim_version.minor >= expected_neovim_version.minor
and actual_neovim_version.major >= expected_neovim_version.major
then
return true
Expand Down

0 comments on commit 6432e0a

Please sign in to comment.