1

Refresh generated nvim config

This commit is contained in:
2024-06-03 21:11:20 +02:00
parent fd506d4921
commit 50723ef645
2114 changed files with 84528 additions and 44473 deletions

View File

@ -518,7 +518,12 @@ function Obj:file_info_tree(file, silent)
return {}
end
local info, relpath = unpack(vim.split(results[1], '\t'))
local info_line = results[1]
if not info_line then
return {}
end
local info, relpath = unpack(vim.split(info_line, '\t'))
local mode_bits, objtype, object_name = unpack(vim.split(info, '%s+'))
assert(objtype == 'blob')

View File

@ -34,6 +34,7 @@ local function parse_version(version)
return ret
end
--- @async
local function set_version()
local version = gs_config.config._git_version
if version ~= 'auto' then
@ -70,6 +71,7 @@ local function set_version()
M.version = parse_version(parts[3])
end
--- @async
--- Usage: check_version{2,3}
--- @param version {[1]: integer, [2]:integer, [3]:integer}?
--- @return boolean