Skip to content

Commit ab88220

Browse files
authored
vim version (#80)
1 parent 116348a commit ab88220

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

lua/tabnine/binary.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local fn = vim.fn
33
local json = vim.json
44
local utils = require("tabnine.utils")
55
local consts = require("tabnine.consts")
6-
local semver = require("tabnine.third_party.semver.semver")
6+
local semver = vim.version
77
local TabnineBinary = {}
88
local config = require("tabnine.config")
99

@@ -41,11 +41,10 @@ local function binary_path()
4141
end, fn.glob(binaries_path .. "/*", true, true))
4242

4343
paths = vim.tbl_map(function(path)
44-
return semver(path)
44+
return semver.parse(path)
4545
end, paths)
4646

4747
table.sort(paths)
48-
4948
return binaries_path .. "/" .. tostring(paths[#paths]) .. "/" .. arch_and_platform() .. "/" .. binary_name()
5049
end
5150

lua/tabnine/third_party/semver

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)