feat(utils)!: update & re-use nightly helper

bump nightly version from 0.8 -> 0.9
This commit is contained in:
Akin Sowemimo 2023-03-12 11:29:56 +00:00
parent d803c1feeb
commit 654826e850
2 changed files with 2 additions and 2 deletions

View file

@ -295,7 +295,7 @@ function M._get_float_config(term, opening)
height = height,
border = opening and border or nil,
}
if vim.version().minor >= 0.9 then win_opts.title = term:float_title() end
if utils.is_nightly() then win_opts.title = term:float_title() end
return win_opts
end

View file

@ -6,7 +6,7 @@ local levels = vim.log.levels
function M.is_nightly()
local v = vim.version()
return v.minor >= 8
return v.minor >= 9
end
---@alias error_types 'error' | 'info' | 'warn'