mirror of
https://github.com/akinsho/toggleterm.nvim
synced 2024-09-16 21:34:03 +02:00
feat(utils)!: update & re-use nightly helper
bump nightly version from 0.8 -> 0.9
This commit is contained in:
parent
d803c1feeb
commit
654826e850
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue