Folke Lemaitre
22c5ffd12c
refactor: move all meta stuff to snacks.meta
2024-12-10 13:55:51 +01:00
Folke Lemaitre
140204fde5
build: added metadata to plugins
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
d6309c62b8
feat(util): set_hl no longer sets default=true when not specified
2024-12-10 13:55:51 +01:00
Folke Lemaitre
5d472b833b
fix(win): ensure win is set when relative=win
2024-12-10 13:55:51 +01:00
Folke Lemaitre
46362a5a9c
feat(win): added actions to easily combine actions in keymaps
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
1d001a70c2
docs: docgen
2024-12-10 13:55:51 +01:00
Folke Lemaitre
1de6c15288
fix(indent): always align indents with shiftwidth
2024-12-10 13:55:51 +01:00
Folke Lemaitre
aa5d00936d
refactor(animate): class / docs / cleanup
2024-12-10 13:55:51 +01:00
Folke Lemaitre
bd7cf03823
feat(words): added toggle for words
2024-12-10 13:55:51 +01:00
Folke Lemaitre
46bab2d8e8
refactor(scroll): docs and cleanup
2024-12-10 13:55:51 +01:00
Folke Lemaitre
2f1c2cfb91
refactor: remove redundant setup functions
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
3dcaad8d0a
fix(scroll): better toggle
2024-12-10 13:55:51 +01:00
Folke Lemaitre
14dcb0e6cf
refactor(scroll): ignore mouse events, handle scrolloff and better way to detect animation scroll events
2024-12-10 13:55:51 +01:00
Folke Lemaitre
6b02a09e5e
fix(scope): better edge detection for treesitter scopes
2024-12-10 13:55:51 +01:00
Folke Lemaitre
38ed01b5a2
feat(scope): fill the range for treesitter scopes
2024-12-10 13:55:51 +01:00
Folke Lemaitre
aeec09c541
feat(toggle): added toggle for smooth scroll
2024-12-10 13:55:51 +01:00
Folke Lemaitre
04f15c1ba2
feat(scroll): allow disabling scroll globally or for some buffers
2024-12-10 13:55:51 +01:00
Folke Lemaitre
47ad2a7bfa
fix(dashboard): override foldmethod
2024-12-10 13:55:51 +01:00
Folke Lemaitre
14da56ee97
fix(zen): properly close existing zen window on toggle
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
3a107afbf8
fix(debug): schedule wrap print
2024-12-10 13:55:51 +01:00
Folke Lemaitre
03c0774e85
perf(animate): check for animation easing updates ouside the main loop and schedule an update when needed
2024-12-10 13:55:51 +01:00
Folke Lemaitre
4aa378a35e
fix(scope): return nil
when buffer is empty for indent scope
2024-12-10 13:55:51 +01:00
Folke Lemaitre
1091280877
feat(animate): added animation context to callbacks
2024-12-10 13:55:51 +01:00
Folke Lemaitre
08fc10ce6f
refactor(animate): pending updates
2024-12-10 13:55:51 +01:00
Folke Lemaitre
e2e6c86d21
fix(scope): take edges into account for min_size
2024-12-10 13:55:51 +01:00
Folke Lemaitre
5352198b5a
fix(indent): use correct config options
2024-12-10 13:55:51 +01:00
Folke Lemaitre
8459e2adc0
feat(zen): added zoom indicator
2024-12-10 13:55:51 +01:00
Folke Lemaitre
bd49d2f32e
feat(win): col/row can be negative calculated on height/end of parent
2024-12-10 13:55:51 +01:00
Folke Lemaitre
003ea8d6ed
feat(win): allow configuring initial text to display in the buffer
2024-12-10 13:55:51 +01:00
Folke Lemaitre
a3c6ab23a0
docs: docgen
2024-12-10 13:55:51 +01:00
Folke Lemaitre
bddae83141
feat(toggle): toggles for new plugins
2024-12-10 13:55:51 +01:00
Folke Lemaitre
afb89ea159
feat(zen): added zen plugin
2024-12-10 13:55:51 +01:00
Folke Lemaitre
4dda5516e8
feat(dim): added dim 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
63a279c4e2
feat(scope): added scope plugin
2024-12-10 13:55:51 +01:00
Folke Lemaitre
48a58792a0
feat(profiler): on_close can now be a function
2024-12-10 13:55:51 +01:00
Folke Lemaitre
971229e8a9
feat(animate): added animate 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
9fb88c67b6
perf(util): redraw helpers
2024-12-10 13:55:51 +01:00
Folke Lemaitre
cdb495cb8f
feat(win): allow customizing backdrop window
2024-12-10 13:55:51 +01:00
folke
379f5b5957
chore(build): auto-generate docs
2024-12-10 13:55:51 +01:00
Folke Lemaitre
c509ea52b7
feat(snacks): zen mode
2024-12-10 13:55:51 +01:00
folke
fc71e36c90
chore(build): auto-generate docs
2024-12-09 13:29:22 +00:00
Iordanis Petkakis
6b78172864
fix(dashboard): don't open with startup option args ( #222 )
...
## Description
Don't open dashboard when Neovim opens with only startup option args.
Took a look at how `dashboard.nvim` did it.
They also have an autocmd for `StdInReadPre`, but I tested with piping
`echo "hello" | nvim` and it works as expected.
Not sure if it's the best solution, so feel free to make any additional
changes or completely disregard for something more robust.
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
## Related Issue(s)
Closes #221 .
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
2024-12-09 14:28:26 +01:00
github-actions[bot]
9651a93104
chore(main): release 2.7.0 ( #177 )
...
🤖 I have created a release *beep* *boop*
---
## [2.7.0](https://github.com/folke/snacks.nvim/compare/v2.6.0...v2.7.0 )
(2024-12-07)
### Features
* **bigfile:** disable matchparen, set foldmethod=manual, set
conceallevel=0
([891648a
](891648a483
))
* **dashbard:** explude files from stdpath data/cache/state in recent
files and projects
([b99bc64
](b99bc64ef9
))
* **dashboard:** allow items to be hidden, but still create the keymaps
etc
([7a47eb7
](7a47eb76df
))
* **dashboard:** allow terminal sections to have actions. Closes
[#189 ](https://github.com/folke/snacks.nvim/issues/189 )
([78f44f7
](78f44f720b
))
* **dashboard:** hide title if section has no items. Fixes
[#184 ](https://github.com/folke/snacks.nvim/issues/184 )
([d370be6
](d370be6d69
))
* **dashboard:** make buffer not listed
([#191 ](https://github.com/folke/snacks.nvim/issues/191 ))
([42d6277
](42d62775d8
))
* **dashboard:** when a section has a title, use that for action and
key. If not put it in the section. Fixes
[#189 ](https://github.com/folke/snacks.nvim/issues/189 )
([045a17d
](045a17da06
))
* **debug:** added `Snacks.debug.run()` to execute the buffer or
selection with inlined print and errors
([e1fe4f5
](e1fe4f5afe
))
* **gitbrowse:** added `line_count`. See
[#186 ](https://github.com/folke/snacks.nvim/issues/186 )
([f03727c
](f03727c77f
))
* **gitbrowse:** opts.notify
([a856952
](a856952ab2
))
* **gitbrowse:** url pattern can now also be a function
([0a48c2e
](0a48c2e726
))
* **notifier:** reverse notif history by default for `show_history`
([5a50738
](5a50738b8e
))
* **scratch:** `opts.ft` can now be a function and defaults to the ft of
the current buffer or markdown
([652303e
](652303e6de
))
* **scratch:** change keymap to execute buffer/selection to `<cr>`
([7db0ed4
](7db0ed4239
))
* **scratch:** use `Snacks.debug.run()` to execute buffer/selection
([32c46b4
](32c46b4e2f
))
* **snacks:** added `Snacks.profiler`
([8088799
](808879951f
))
* **snacks:** added new `scratch` snack
([1cec695
](1cec695fef
))
* **toggle:** toggles for the profiler
([999ae07
](999ae07808
))
* **util:** encode/decode a string to be used as a filename
([e6f6397
](e6f63970de
))
* **util:** simple function to get an icon
([7c29848
](7c29848e89
))
* **win:** added `opts.fixbuf` to configure fixed window buffers
([1f74d1c
](1f74d1ce77
))
* **win:** backdrop can now be made opaque
([681b9c9
](681b9c9d65
))
* **win:** width/height can now be a function
([964d7ae
](964d7ae99a
))
### Bug Fixes
* **dashboard:** calculate proper offset when item has no text
([6e3b954
](6e3b9546de
))
* **dashboard:** prevent possible duplicate recent files. Fixes
[#171 ](https://github.com/folke/snacks.nvim/issues/171 )
([93b254d
](93b254d658
))
* **dashboard:** take hidden items into account when calculating
padding. Fixes [#194 ](https://github.com/folke/snacks.nvim/issues/194 )
([736ce44
](736ce447e8
))
* **dashboard:** take indent into account when calculating terminal
width
([cda695e
](cda695e53f
))
* **dashboard:** truncate file names when too long. Fixes
[#183 ](https://github.com/folke/snacks.nvim/issues/183 )
([4bdf7da
](4bdf7daece
))
* **debug:** better way of getting visual selection. See
[#190 ](https://github.com/folke/snacks.nvim/issues/190 )
([af41cb0
](af41cb088d
))
* **gitbrowse:** opts.notify
([2436557
](243655796e
))
* **gitbrowse:** removed debug
([f894952
](f8949523ed
))
* **gitbrowse:** use line_start and line_end directly in patterns.
Closes [#186 ](https://github.com/folke/snacks.nvim/issues/186 )
([adf0433
](adf0433e8f
))
* **profiler:** startup opts
([85f5132
](85f51320b2
))
* **scratch:** always set filetype on the buffer. Fixes
[#179 ](https://github.com/folke/snacks.nvim/issues/179 )
([6db50cf
](6db50cfe2d
))
* **scratch:** floating window title/footer hl groups
([6c25ab1
](6c25ab1108
))
* **scratch:** make sure win.opts.keys exists. See
[#190 ](https://github.com/folke/snacks.nvim/issues/190 )
([50bd510
](50bd5103ba
))
* **scratch:** sort keys. Fixes
[#193 ](https://github.com/folke/snacks.nvim/issues/193 )
([0df7a08
](0df7a08b01
))
* **scratch:** weirdness with visual selection and inclusive/exclusive.
See [#190 ](https://github.com/folke/snacks.nvim/issues/190 )
([f955f08
](f955f082e0
))
* **statuscolumn:** add virtnum and relnum to cache key. See
[#198 ](https://github.com/folke/snacks.nvim/issues/198 )
([3647ca7
](3647ca7d8a
))
* **statuscolumn:** don't show signs on virtual ligns. See
[#198 ](https://github.com/folke/snacks.nvim/issues/198 )
([f5fb59c
](f5fb59cc4c
))
* **util:** better support for nvim-web-devicons
([ddaa2aa
](ddaa2aaba5
))
* **util:** make sure to always return an icon
([ca7188c
](ca7188c531
))
* **win:** allow resolving nil window option values. Fixes
[#179 ](https://github.com/folke/snacks.nvim/issues/179 )
([0043fa9
](0043fa9ee1
))
* **win:** don't force close modified buffers
([d517b11
](d517b11cab
))
* **win:** update opts.wo for padding instead of vim.wo directly
([446f502
](446f50208f
))
* **win:** update window local options when the buffer changes
([630d96c
](630d96cf1f
))
### Performance Improvements
* **dashboard:** properly cleanup autocmds
([8e6d977
](8e6d977ec9
))
* **statuscolumn:** optimize caching
([d972bc0
](d972bc0a47
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-07 21:44:00 +01:00