Commit graph

32 commits

Author SHA1 Message Date
folke
0d3bb4213f chore(build): auto-generate docs 2025-02-17 16:19:00 +00:00
folke
f346d297dd chore(build): auto-generate docs 2025-02-17 15:10:45 +00:00
Folke Lemaitre
bdb489bc60
docs: docgen 2025-02-13 18:04:04 +01:00
Folke Lemaitre
4e4e63048e
feat: added new image snacks plugin for the kitty graphics protocol 2025-02-09 22:35:13 +01:00
Folke Lemaitre
17bdd182f7
docs: docgen 2025-01-31 08:32:20 +01:00
folke
c7ddd8132a chore(build): auto-generate docs 2025-01-16 20:43:37 +00:00
Folke Lemaitre
559d6c6bf2
feat(snacks): added snacks.picker (#445)
## 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. -->
2025-01-14 22:53:59 +01:00
folke
3f7b8fc3fb chore(build): auto-generate docs 2024-12-15 18:09:16 +00:00
folke
ed23474b25 chore(build): auto-generate docs 2024-12-13 22:58:36 +00:00
Folke Lemaitre
2a664b615f
ci: try making config options optional 2024-12-13 15:58:54 +01:00
Folke Lemaitre
8faafb3483
feat(scope): text objects and jumping for scopes. Closes #231 2024-12-11 22:17:59 +01:00
folke
d7a3401662 chore(build): auto-generate docs 2024-12-10 13:27:29 +00:00
Folke Lemaitre
6ca848766c ci: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
f2135f2fe2 ci: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
1d001a70c2 docs: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
a3c6ab23a0 docs: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
67894ee778
docs: added a setup section to docgen, since some people didn't know how to configure snacks... 2024-12-01 23:13:21 +01:00
Folke Lemaitre
c7802ccc0e
docs: docgen 2024-12-01 09:08:30 +01:00
folke
da53742d23 chore(build): auto-generate docs 2024-11-27 22:57:50 +00:00
Folke Lemaitre
d730a13b55
feat(config): allow overriding resolved options for a plugin. See #164 2024-11-27 21:43:15 +01:00
Folke Lemaitre
6e3cb7e53c
feat(config): make it easier to use examples in your config 2024-11-27 21:27:56 +01:00
Folke Lemaitre
d540fa607c
feat(dashboard): added new dashboard snack (#77)
## Description

A new dashboard plugin that comes with sane defaults, and can be fully
customized to your liking.

## Screenshots


![image](https://github.com/user-attachments/assets/944373ea-f443-4c16-bfe0-2dc78101f8f5)


![image](https://github.com/user-attachments/assets/492b075e-168d-4d58-af39-1268c047f374)


![image](https://github.com/user-attachments/assets/53a388c2-ca5a-4efb-94f2-752222f43584)


![image](https://github.com/user-attachments/assets/3c6ee94b-6785-4035-8ed2-2f67f39b5f06)


![image](https://github.com/user-attachments/assets/5b7a7117-e504-4b36-88db-91ccc89d8997)
2024-11-18 16:25:17 +01:00
Folke Lemaitre
7434770804 docs: docgen 2024-11-14 23:56:37 +01:00
Folke Lemaitre
0ae7da85ae
docs: docgen for styles 2024-11-06 10:56:23 +01:00
Folke Lemaitre
b4bd12c0ea
docs: better docs 2024-11-05 23:16:08 +01:00
folke
2142cc8fe6 chore(build): auto-generate docs 2024-11-05 15:55:48 +00:00
folke
a54feeb55c chore(build): auto-generate docs 2024-11-04 23:21:14 +00:00
folke
b6e08f3edf chore(build): auto-generate docs 2024-11-04 21:23:33 +00:00
Folke Lemaitre
74adb33d9b
ci: docgen 2024-11-04 20:29:41 +01:00
folke
e857b0a0a2 chore(build): auto-generate docs 2024-11-04 17:57:09 +00:00
Folke Lemaitre
75ab5c8f2f
ci: better docs 2024-11-04 16:42:30 +01:00
Folke Lemaitre
df333a6a9a
ci: docgen 2024-11-04 16:39:24 +01:00