Commit graph

34 commits

Author SHA1 Message Date
Folke Lemaitre
3bfaffdd23
docs: docgen 2025-02-18 22:54:32 +01:00
Folke Lemaitre
4752a87d54
docs: better doc tags. Closes #1234 2025-02-17 13:41:34 +01: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 Lemaitre
770df9e5cf
docs: docgen 2025-01-17 14:37:09 +01: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 Lemaitre
60adc6ac8a
docs: docgen 2024-12-31 06:20:31 +01:00
Folke Lemaitre
05f736d4eb
docs: docgen 2024-12-15 19:58:36 +01:00
Folke Lemaitre
b90e8c4c15
docs: vimdoc gen 2024-12-15 10:49:09 +01: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 Lemaitre
61439cab2f
docs: added new plugins to readme install/example section 2024-12-10 15:22:39 +01: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
7e9fdd48f4
docs: docgen 2024-12-01 13:36:21 +01:00
Folke Lemaitre
c7802ccc0e
docs: docgen 2024-12-01 09:08:30 +01: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
0df7775541
docs: docgen 2024-11-10 08:03:44 +01:00
Folke Lemaitre
7e6ea65f5f
docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
Folke Lemaitre
38e0f95491
docs: docgen 2024-11-08 08:59:42 +01:00
Folke Lemaitre
af273896c9
docs: docgen 2024-11-07 22:26:44 +01:00
Folke Lemaitre
636a17fd66
docs: docgen 2024-11-07 14:33:19 +01:00
Folke Lemaitre
cdc9f24ae2
docs: update 2024-11-07 10:46:47 +01:00
Folke Lemaitre
0ae7da85ae
docs: docgen for styles 2024-11-06 10:56:23 +01:00
Folke Lemaitre
c71f3c84f4
docs: update 2024-11-06 00:35:44 +01:00
Folke Lemaitre
b4bd12c0ea
docs: better docs 2024-11-05 23:16:08 +01:00
Folke Lemaitre
e6c18f17c8
docs: improve vim help 2024-11-05 22:28:46 +01:00
Renamed from doc/snacks.nvim-init.txt (Browse further)