Folke Lemaitre
9bca1b1c54
style(debug): make sure id is set
2025-10-29 07:44:04 +01:00
Folke Lemaitre
15014e013f
style(debug): luals types
2025-10-28 00:14:18 +01:00
Folke Lemaitre
a4ed279692
style(debug): luals annotations
2025-10-26 11:49:49 +01:00
Jason Cheatham
231ffae08d
feat(debug): allow debug evaluation of block selections ( #1331 )
...
## Description
This PR adds basic support for visual block selections to
`Snacks.debug.run()`. This is useful when code doesn't start at the
beginning of a line, such as in comment blocks.
## 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. -->
<img width="271" alt="Screenshot 2025-02-19 at 23 02 35"
src="https://github.com/user-attachments/assets/5a440b32-6846-4345-b105-42e64796ac65 "
/>
2025-10-20 14:53:55 +02:00
Folke Lemaitre
1adfd29af3
feat(image): better error handling + option to disable error notifications
2025-02-18 22:54:24 +01:00
Folke Lemaitre
b65178b470
feat(image): show progress indicator when converting image files
2025-02-17 23:56:55 +01:00
Folke Lemaitre
a76fe13148
feat(util): util.spawn
2025-02-17 23:12:54 +01:00
Folke Lemaitre
48a3fed3c5
fix(debug): better args handling for debugging cmds
2025-02-17 12:44:05 +01:00
Folke Lemaitre
eced3033ea
feat(debug): graduate proc debug to Snacks.debug.cmd
2025-02-16 22:56:28 +01:00
Folke Lemaitre
570d2191d5
feat(debug): truncate inspect to 2000 lines max
2025-01-23 10:10:33 +01:00
Stefan Boca
81572b5f97
fix(debug.run): schedule only nvim_buf_set_extmark in on_print ( #425 )
...
## Description
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
Previously, `get_line` was called from a scheduled function, and would
always return nil, placing the extmark for print output on the wrong
line.
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
Before:

After:

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-01-20 13:36:34 +01:00
Folke Lemaitre
cba16bdb35
feat(debug): system & memory metrics useful for debugging
2024-12-31 06:18:13 +01:00
Folke Lemaitre
6cbdbb9afa
fix(debug): make sure debug can be required in fast events
2024-12-18 07:01:48 +01:00
Folke Lemaitre
b70edc29db
fix(debug): make debug.inpect work in fast events
2024-12-17 07:35:13 +01:00
Folke Lemaitre
140204fde5
build: added metadata to plugins
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
3a107afbf8
fix(debug): schedule wrap print
2024-12-10 13:55:51 +01:00
Folke Lemaitre
f955f082e0
fix(scratch): weirdness with visual selection and inclusive/exclusive. See #190
2024-12-03 09:32:54 +01:00
Folke Lemaitre
af41cb088d
fix(debug): better way of getting visual selection. See #190
2024-12-02 20:11:46 +01:00
Folke Lemaitre
e1fe4f5afe
feat(debug): added Snacks.debug.run() to execute the buffer or selection with inlined print and errors
2024-12-01 12:45:39 +01:00
Folke Lemaitre
017707955f
feat(debug): profile title
2024-11-21 22:08:46 +01:00
Folke Lemaitre
33d31af150
fix(debug): include main in caller
2024-11-21 22:08:29 +01:00
Folke Lemaitre
143c244346
refactor: move all dashboard tracing to debug
2024-11-19 14:55:04 +01:00
Folke Lemaitre
735f4d8c9d
fix(debug): MYVIMRC is not always set
2024-11-18 20:03:46 +01:00
Folke Lemaitre
b593598859
feat(debug): Snacks.debug.trace and Snacks.debug.stats for hierarchical traces (like lazy profile)
2024-11-18 08:56:43 +01:00
Folke Lemaitre
4f99818b0a
fix: added compatibility with Neovim >= 0.9.4
2024-11-09 15:38:43 +01:00
Folke Lemaitre
7e6ea65f5f
docs: better docgen using treesitter
2024-11-09 14:42:09 +01:00
Folke Lemaitre
fc2a8e7468
feat(debug): simple log function to quickly log something to a debug.log file
2024-11-08 08:58:52 +01:00
Folke Lemaitre
14ecc90685
docs: docs for debug
2024-11-06 13:38:51 +01:00
Folke Lemaitre
983621b0fe
docs: docgen
2024-11-06 11:27:52 +01:00
Folke Lemaitre
0138358b48
style(debug): fixed annotations
2024-11-05 18:05:42 +01:00
Folke Lemaitre
8845a6a912
fix(debug): exclude vimrc from callers
2024-11-05 17:27:44 +01:00
Folke Lemaitre
56c528ca5d
refactor(notify): opts.lang => opts.ft
2024-11-05 16:54:58 +01:00
Folke Lemaitre
e1f736d71f
feat(debug): added simple profile function
2024-11-05 00:32:52 +01:00
Folke Lemaitre
6cb43f6033
feat: added debug
2024-11-04 18:56:19 +01:00