Commit graph

31 commits

Author SHA1 Message Date
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:

![image](https://github.com/user-attachments/assets/d493f70a-82c6-4a48-82f6-66beed7b9383)

After:

![image](https://github.com/user-attachments/assets/9a0ec53c-fdfb-4786-b954-86284d3eac54)

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