150523b77b
feat(toggle): make toggles callable. Fixes #4081
2024-07-16 23:34:27 +02:00
a1335e59e1
style: fix toggle desc
2024-07-15 23:56:07 +02:00
78cf0320bf
feat(keymaps): dynamic which-key icons/descriptions for toggles ( #4050 )
...
## Description
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
## Related Issue(s)
- [ ] Closes #4025
## Screenshots

## Checklist
- [ ] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md )
guidelines.
2024-07-15 15:47:44 +02:00
452b70ad15
fix(toggle): slightly better maximize
2024-06-05 07:40:28 +02:00
1c583650e6
fix(toggle): un-maximize when quiting Neovim
2024-06-05 07:02:19 +02:00
8971ea25f9
fix(toggle): Restore width/height values when closing while maximized is toggled on ( #3453 )
2024-06-05 06:54:52 +02:00
3ace8277e5
feat(keymaps): new keymap to toggle mazimize of current window leader-m or leader-wm
2024-05-29 22:35:40 +02:00
23374f160a
fix(util.toggle): correctly toggle inlay_hints
( #3202 )
...
`is_enabled` also accepts a `filter` and when we initially toggle
`inlay_hints` on
[here](735f5905f8/lua/lazyvim/plugins/lsp/init.lua (L153)
),
we pass a `bufnr` which sets the `inlay_hints` in the `bufstate` (see
[here](42aa69b076/runtime/lua/vim/lsp/inlay_hint.lua (L407-L432)
)),
but when we call `is_enabled` without a filter table the returned result
if from the `globalstate` (see
[here](42aa69b076/runtime/lua/vim/lsp/inlay_hint.lua (L376-L388)
)).
2024-05-17 20:06:17 +02:00
960ec8079b
fix: deprecation warning on diagnostic.is_disabled
2024-05-17 09:19:28 +02:00
5f92dc5304
fix(toggle): use new inlay_hint.enable()
signature ( #3013 )
2024-04-22 09:36:05 +02:00
7a5dbeae75
feat: use LazyVim everywhere instead of require("lazyvim.util")
2024-03-22 09:15:09 +01:00
93342f15ba
feat(toggle): use vim.diagnostic.is_disabled
when available ( #2217 )
...
* feat(toggle-diagnostics): change logic based on `vim.diagnostic.is_disabled`
After discussion in #2215 , I thought maybe it would be beneficial if we
could change the logic of the `toggle-diagnostics` function based on if
the user has disabled diagnostics in his own configuration.
* feat(toggle-diagnostics): revert to `enable` instead of `status`
* fix(toggle): use vim.diagnostics enabled state when possible
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com >
2024-01-21 20:41:11 +01:00
8baf9b5459
fix(lsp): fix inlay hints for older nightlies. See #2007
2023-11-30 21:24:07 +01:00
6853b785d9
fix(lsp): detect if using nvim-0.10 and use new inlay_hint.enable method ( #2007 )
...
* Detect if using nvim 0.10 and use new inlay_hint.enable method
* Add lsp util for inlay-hints and update keymap
* Remove the need to check vim version
* Support older nightly builds
* Move inlay_hint toggle in Util.toggle
---------
Co-authored-by: Gary Murray <gamurray@fanatics.com >
2023-11-30 19:53:40 +01:00
c8c929c9fd
perf(util): split lazyvim.util in smaller separate modules
2023-10-12 11:48:02 +02:00