snacks.nvim/lua/snacks/image
Daniel Wennberg 90227af497
fix(image): skip \usepackage in comments and body (#2325)
## Description

Here are some small and hopefully uncontroversial tweaks to package
extraction from LaTeX preambles:

* Don't consider anything in comments
* Make sure that the extracted names are actually the arguments of
`\usepackage` and not some other macro on the same line
* Stop looking for packages at `\begin{document}`, where the preamble
ends and the body of the document begins (you can't load packages after
this, so any `\usepackage` beyond this point is content, not code. Also
saves a huge amount of work in large documents.)

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-10-23 11:14:32 +02:00
..
buf.lua fix(image): detect kitty image protocol through terminal capability request. Closes #1695 2025-10-22 16:56:26 +02:00
convert.lua fix(image): ENOENT on preview (#2301) 2025-10-21 14:46:27 +02:00
doc.lua fix(image): skip \usepackage in comments and body (#2325) 2025-10-23 11:14:32 +02:00
image.lua feat(image): added clear fun. Closes #1394 2025-10-20 18:27:14 +02:00
init.lua feat(win): all existing snacks windows for all plugins now honor vim.o.winborder. Defaults to rounded if not set. 2025-10-22 23:06:35 +02:00
inline.lua feat(image.inline): honor concealcursor and hide conceal when selecting lines. Closes #1478 2025-03-01 23:37:02 +01:00
placement.lua fix(image): correct render fallback to handle "editor" relative position (#2297) 2025-10-21 07:36:13 +02:00
terminal.lua fix(image.terminal): do only terminal detection for now. Closes #2323 2025-10-23 07:02:17 +02:00
util.lua feat(compat): added svim, a compatibility layer for Neovim. Closes #1321 2025-02-20 06:59:44 +01:00