mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
feat(image): refactor of treesitter queries to support inline image data
This commit is contained in:
parent
48a3fed3c5
commit
0bf0c6223d
22 changed files with 393 additions and 68 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue