feat(image): refactor of treesitter queries to support inline image data

This commit is contained in:
Folke Lemaitre 2025-02-17 12:49:38 +01:00
parent 48a3fed3c5
commit 0bf0c6223d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
22 changed files with 393 additions and 68 deletions

View file

@ -30,8 +30,8 @@ end
function M.pixels_to_cells(size)
local terminal = Snacks.image.terminal.size()
return M.norm({
width = size.width / terminal.cell_width * terminal.scale,
height = size.height / terminal.cell_height * terminal.scale,
width = size.width / terminal.cell_width,
height = size.height / terminal.cell_height,
})
end