Commit graph

476 commits

Author SHA1 Message Date
NevLext
ec346843e0
fix(lazygit): enable boolean values in config (#377)
## Description

Using boolean value inside `config` resulted in error `attempt to
concatenate a boolean value` inside `to_yaml` function.
This PR fixes it by converting boolean values to string

Example config:
```
lazygit = {
    config = {
        gui = {
            showFileTree = false,
        },
    },
},
```
## Related Issue(s)

## Screenshots

![image](https://github.com/user-attachments/assets/eea8eec6-2008-4ded-9222-6f7c9b9d4390)
2024-12-31 06:22:31 +01:00
Chris Grieser
373d0f9b6d
fix(win): backdrop having bright cell at top right (#400)
## The bug
`backdrop` displays a bright cell at the top left. upon investigation, I
figured out that it's created by the user's `colorcolumn` setting also
being applied to the backdrop.

## The fix
Disable `colorcolumn` for the backdrop window.

## Screenshots

before
![Pasted image 2024-12-27 at 14 16
40@2x](https://github.com/user-attachments/assets/8495330e-cec3-46bb-ac8c-c009865a18e3)

after
![Pasted image 2024-12-27 at 14 17
14@2x](https://github.com/user-attachments/assets/2d0b46e5-a74a-4e01-aa01-e35536eb042c)
2024-12-31 06:21:15 +01:00
Folke Lemaitre
60adc6ac8a
docs: docgen 2024-12-31 06:20:31 +01:00
Folke Lemaitre
cba16bdb35
feat(debug): system & memory metrics useful for debugging 2024-12-31 06:18:13 +01:00
Folke Lemaitre
89306308f3
fix(input): refactor for win changes and ensure modified=false. Fixes #403. Fixes #402 2024-12-31 06:17:37 +01:00
Folke Lemaitre
cc0b52872b
feat(win): better dimension calculation for windows (use by upcoming layouts) 2024-12-31 06:15:54 +01:00
Folke Lemaitre
320ecbc15c
feat(win): top,right,bottom,left borders 2024-12-31 06:15:05 +01:00
Folke Lemaitre
402494bdee
feat(win): allow setting desc for window actions 2024-12-31 06:14:20 +01:00
Folke Lemaitre
93aabee9b2
refactor(win): manage window events 2024-12-31 06:13:15 +01:00
Folke Lemaitre
4cd0647eb5
feat(win): Snacks.win:border_size 2024-12-31 06:10:03 +01:00
Folke Lemaitre
a7899f58cf
refactor(win): __index 2024-12-31 06:05:17 +01:00
Folke Lemaitre
0711a82b7a
feat(win): Snacks.win:redraw 2024-12-31 06:04:30 +01:00
Folke Lemaitre
dd50e53a9e
fix(win): force-close any buffer that is not a file 2024-12-31 06:03:48 +01:00
Folke Lemaitre
ca233c7448
fix(win): don't enter when focusable is false 2024-12-31 06:03:31 +01:00
Folke Lemaitre
a1da66e3bf
feat(win): Snacks.win:scroll 2024-12-31 06:02:36 +01:00
Folke Lemaitre
7383edaec8
feat(util): Snacks.util.ref 2024-12-31 06:01:10 +01:00
Folke Lemaitre
98403313c7
fix(util): throttle now autonatically schedules when in fast event 2024-12-31 06:00:48 +01:00
Folke Lemaitre
b93201bdf3
fix(indent): repeat_linbebreak only works on Neovim >= 0.10. Fixes #353 2024-12-20 14:31:36 +01:00
Folke Lemaitre
94ec5686a6
fix(indent): don't render scopes in closed folds. Fixes #352 2024-12-19 08:47:36 +01:00
Folke Lemaitre
c62e7a2561
fix(indent): do animate check in bufcall 2024-12-19 08:47:36 +01:00
Folke Lemaitre
2990bf0c7a
fix(input): change buftype to prompt. Fixes #350 2024-12-18 22:23:08 +01:00
Folke Lemaitre
551e644ca3
fix(indent): off-by-one for indent guide hl group 2024-12-18 21:48:50 +01:00
Folke Lemaitre
05f49814f3
fix(zen): set zindex to 40, lower than hover (45). Closes #345 2024-12-18 15:35:00 +01:00
Folke Lemaitre
282be8bfa8
fix(indent): simplify indent guide logic and never overwrite blanks. Fixes #334 2024-12-18 07:41:37 +01:00
Folke Lemaitre
fc0a99b849
fix(scroll): don't animate when leaving cmdline search with incsearch enabled. Fixes #331 2024-12-18 07:09:03 +01:00
Folke Lemaitre
eb887f4abb
style: luals 2024-12-18 07:02:08 +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
1244305bed
fix(scope): don't expand to invalid range. Fixes #339 2024-12-18 06:59:20 +01:00
Folke Lemaitre
b6032e8f1b
fix(scroll): check for invalid window. Fixes #340 2024-12-18 06:49:07 +01:00
Folke Lemaitre
972c61cc1c
fix(indent): breakdinent 2024-12-17 07:55:32 +01:00
Folke Lemaitre
235427abcb
fix(indent): better way to deal with breakindent. Fixes #329 2024-12-17 07:35:13 +01:00
Folke Lemaitre
b70edc29db
fix(debug): make debug.inpect work in fast events 2024-12-17 07:35:13 +01:00
Folke Lemaitre
80dcb88ede
fix(words): only check modes for is_enabled when needed 2024-12-16 21:17:31 +01:00
Folke Lemaitre
58ae580c2c
fix(scope): allow treesitter scopes when treesitter highlighting is disabled. See #231 2024-12-16 18:03:24 +01:00
Folke Lemaitre
737980d987
feat(util): throttle 2024-12-16 18:03:24 +01:00
Folke Lemaitre
3123e6e988
fix(input): make sure to show input window with a higher zindex of the parent window (if float) 2024-12-16 18:03:24 +01:00
Folke Lemaitre
0617e28f82
fix(win): unset winblend when transparent 2024-12-16 08:49:33 +01:00
Folke Lemaitre
766e671452
fix(indent): allow rendering over blank lines. Fixes #313 2024-12-16 08:42:54 +01:00
Folke Lemaitre
58081bcecb
fix(indent): use space instead of full blank for indent offset. See #313 2024-12-16 08:34:44 +01:00
Folke Lemaitre
37038df00d
feat(input): disable completion engines in input 2024-12-15 20:20:50 +01:00
Folke Lemaitre
6a36f32eaa
fix(scope): use virtcol for calculating scopes at the cursor 2024-12-15 19:24:57 +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
6f3cbf8ad3
fix(indent): correct calculation of partial indent when leftcol > 0 2024-12-15 19:04:08 +01:00
Folke Lemaitre
66cce2f512
fix(indent): typo for underline 2024-12-15 18:14:10 +01:00
Iordanis Petkakis
d2b5680359
fix(notifier): open history window with correct style (#307)
## Description
This
[commit](fd9ef30206)
renamed the style for `history_notification`, but opening the window
still used the old name.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## 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. -->
2024-12-15 13:24:16 +01:00
Folke Lemaitre
8ec6e6adc5
feat(scope): disable treesitter blocks by default 2024-12-15 12:32:02 +01:00
Folke Lemaitre
e63fa7bf05
fix(scope): properly caluclate start indent when cursor=true for indent scopes. See #5068 2024-12-15 12:22:17 +01:00
Folke Lemaitre
05602b6caf
docs: added documentation on how to customize styles 2024-12-15 11:17:32 +01:00
Folke Lemaitre
fd9ef30206
fix(notifier): rename style notification.history -> notification_history 2024-12-15 11:17:12 +01:00
Folke Lemaitre
54bc6bab2d
feat(scope): added opts.cursor to take cursor column into account for scope detection. (defaults to true). Closes #282 2024-12-15 09:55:42 +01:00