Refresh generated nvim config
This commit is contained in:
@ -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')
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user