Commit graph

49 commits

Author SHA1 Message Date
Folke Lemaitre
b8b4aa0308
feat: snacks picker 2025-01-13 21:53:00 +01:00
Valentin Degenne
c11b74c676
feat(styles): exportable styles (#306)
To allow syntax like:

```lua
local mystyle = Snacks.config.style('...')

-- somewhere else
Snacks.win({
  style = mystyle
})
```

and improve code navigation (e.g. jumping using `gd`, as opposed to
searching string, or not being sure of the exact name, ...)
2024-12-15 19:08:04 +01:00
Folke Lemaitre
b41320c6b4
test: added scope tests 2024-12-14 21:50:19 +01:00
Folke Lemaitre
b0f5b74f4a
style: annotations 2024-12-13 23:57:50 +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
acf743fcfc
fix(input): health check. Fixes #239 2024-12-10 19:38:40 +01:00
Folke Lemaitre
e9d099322f
fix(init): set input disabled by default. Fixes #227 2024-12-10 14:26:22 +01:00
Folke Lemaitre
614df63acf perf(input): lazy-load vim.ui.input 2024-12-10 13:55:51 +01:00
Folke Lemaitre
70902eee9e feat(input): added input snack 2024-12-10 13:55:51 +01:00
Folke Lemaitre
72eba84180 fix(health): health checks 2024-12-10 13:55:51 +01:00
Folke Lemaitre
01ab0fce21 refactor(init): cleanup code 2024-12-10 13:55:51 +01:00
Folke Lemaitre
519a45bfe5 fix(init): enabled check 2024-12-10 13:55:51 +01:00
Folke Lemaitre
38a5ccc3a6 feat(scroll): added smooth scrolling plugin 2024-12-10 13:55:51 +01:00
Folke Lemaitre
2c4021c466 feat(indent): added indent plugin 2024-12-10 13:55:51 +01:00
Folke Lemaitre
0194f18cfa refactor: auto-gen plugin types 2024-12-10 13:55:51 +01:00
Folke Lemaitre
1cec695fef
feat(snacks): added new scratch snack 2024-12-01 09:08:03 +01:00
Folke Lemaitre
d0794dcf8e
fix(init): use rawget when loading modules to prevent possible recursive loading with invalid module fields 2024-11-29 07:37:49 +01:00
Folke Lemaitre
45fd0efe41
fix(config): check correct var for single config result. Fixes #167 2024-11-27 23:56:56 +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
deb00d0ddc
feat: added dashboard health checks 2024-11-18 19:16:54 +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
797708b038 feat(config)!: plugins are no longer enabled by default. Pass any options, or set enabled = true. 2024-11-14 23:56:37 +01:00
Folke Lemaitre
4f99818b0a
fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00
Folke Lemaitre
6c76f91398
fix(config): deepcopy config where needed 2024-11-06 22:36:37 +01:00
Folke Lemaitre
0d91a4e364
fix(config): fix reading config during setup. Fixes #2 2024-11-06 22:36:37 +01:00
Folke Lemaitre
9341f730d9
refactor(notifier): make notify a mod method instead of class method 2024-11-06 13:38:51 +01:00
Folke Lemaitre
66810971b9
fix(win): better implementation of window styles (previously views) 2024-11-06 10:56:08 +01:00
Folke Lemaitre
b4bd12c0ea
docs: better docs 2024-11-05 23:16:08 +01:00
Folke Lemaitre
44011ddf0d
feat: added notifier 2024-11-05 16:54:58 +01:00
Folke Lemaitre
0209e95f6d
style(toggle): types 2024-11-05 16:54:58 +01:00
Folke Lemaitre
28c3029699
feat: added toggle 2024-11-05 00:20:26 +01:00
Folke Lemaitre
f5bbb446ed
fix(config): merging of possible nil values 2024-11-04 22:22:36 +01:00
Folke Lemaitre
12d6f863f7
feat(win): custom views 2024-11-04 22:17:12 +01:00
Folke Lemaitre
1bdb193139
refactor: float -> win, since it also manages splits 2024-11-04 20:29:25 +01:00
Folke Lemaitre
6cb43f6033
feat: added debug 2024-11-04 18:56:19 +01:00
Folke Lemaitre
f4e0130ec3
feat: added notify 2024-11-04 18:56:19 +01:00
Folke Lemaitre
a638d8bafe
feat: added gitbrowse 2024-11-04 12:16:21 +01:00
Folke Lemaitre
f0a9991347
feat: added git 2024-11-04 12:13:43 +01:00
Folke Lemaitre
fc32619734
feat: added lazygit 2024-11-04 12:13:43 +01:00
Folke Lemaitre
b3d08beb8c
feat(config): get config for snack with defaults and custom opts 2024-11-04 10:15:43 +01:00
Folke Lemaitre
e6cc7c998a
feat: terminal 2024-11-03 22:06:04 +01:00
Folke Lemaitre
6e825f509e
fix(config): don't change defaults in merge 2024-11-03 22:06:04 +01:00
Folke Lemaitre
d106107cdc
feat: float 2024-11-03 22:06:04 +01:00
Folke Lemaitre
fa33688301
feat: rename 2024-11-03 15:43:57 +01:00
Folke Lemaitre
787b53e763
fix: simplify setup 2024-11-03 15:17:05 +01:00
Folke Lemaitre
73445af400
feat: words 2024-11-03 15:10:35 +01:00
Folke Lemaitre
c98c4c0307
feat: config & setup 2024-11-03 12:56:05 +01:00