mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
feat(health): vim.ui.img healthcheck #39449
This commit is contained in:
@@ -113,6 +113,17 @@ function M.del(id)
|
||||
return true
|
||||
end
|
||||
|
||||
---@private
|
||||
--- Query whether the host terminal supports displaying images.
|
||||
--- Blocks until the terminal responds or times out.
|
||||
---
|
||||
---@param opts? {timeout?: integer} timeout in milliseconds (default: 1000)
|
||||
---@return boolean supported true if the terminal supports image display
|
||||
---@return string? msg error detail if the terminal responded but not with OK
|
||||
function M._supported(opts)
|
||||
return require('vim.ui.img._kitty').supported(opts)
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd('VimLeavePre', {
|
||||
callback = function()
|
||||
---@type integer[]
|
||||
|
||||
Reference in New Issue
Block a user