Current test.tex page is poorly written and often contains mistakes
(e.g. missing backspace in front of greek letters). I have created a
page that is much more useful. It contains some of the most beautiful
math equations ever written. The file is validated: "pdflatex test.tex"
command produces valid (and nice looking) PDF document.
The document is also much longer - I have some issues with it in nvim
(partial latex rendering or rendering that works only if something major
is changed), so maybe it can help Folke to check the latex preview
functionality once again.
<img width="1019" alt="Screenshot 2025-02-23 at 11 13 48"
src="https://github.com/user-attachments/assets/306715be-89c0-4186-8910-c0069717c23a"
/>
---------
Co-authored-by: Sasa Markovic <provincijalac@gmail.com>
## Description
Added queries for Svelte as well, based on Vue.
Note that I am not sure if the current HTML queries, which both Vue and
this Svelt query inherits from, is working as intended.
I do not get any sort of inline images. But I guess that will have to be
debugged and fixed in another issue and the fix should not affect this
patch (hopefully).
## Related Issue(s)
Fixes#1275
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
## Description
More info coming tomorrow.
In short:
- very fast. pretty much realtime filtering/sorting in huge repos (like
1.7 million files)
- extensible
- easy to customize the layout (and lots of presets) with
`snacks.layout`
- simple to create custom pickers
- `vim.ui.select`
- lots of builtin pickers
- uses treesitter highlighting wherever it makes sense
- fast lua fuzzy matcher which supports the [fzf
syntax](https://junegunn.github.io/fzf/search-syntax/) and additionally
supports field filters, like `file:lua$ 'function`
There's no snacks picker command, just use lua.
```lua
-- all pickers
Snacks.picker()
-- run files picker
Snacks.picker.files(opts)
Snacks.picker.pick("files", opts)
Snacks.picker.pick({source = "files", ...})
```
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
## Todo
- [x] issue with preview loc not always correct when scrolling fast in
list (probably due to `snacks.scroll`)
- [x] `grep` (`live_grep`) is sometimes too fast in large repos and can
impact ui rendering. Not very noticeable, but something I want to look
at.
- [x] docs
- [x] treesitter highlights are broken. Messed something up somewhere
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
<!-- Add screenshots of the changes if applicable. -->