LazyVim.LazyVim/lua/lazyvim/util
Iordanis Petkakis 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
..
extras.lua fix(extras): dont show extras that give errors (user's extras). Fixes #1895 2023-10-28 16:38:43 +02:00
format.lua fix(format): set formatexpr in options so users can override it. Fixes #1759 2023-10-16 23:01:18 +02:00
init.lua feat(lualine): pretty_path now highlights file basename when modified 2023-10-15 22:37:49 +02:00
inject.lua feat(inject): util method to get upvalue 2023-10-12 11:48:02 +02:00
json.lua fix(json): always write version to prevent spurious migrations. Fixes #1692 2023-10-13 07:36:02 +02:00
lsp.lua refactor(util.lsp): easier lsp client filters 2023-10-13 12:20:55 +02:00
lualine.lua fix(root): root dir for windows. Fixes #1749 2023-10-16 08:35:35 +02:00
news.lua fix(news): dont show news when it has never been viewed (new install) 2023-10-14 16:56:48 +02:00
plugin.lua fix(plugin): LazyFile now properly deals with deleted buffers. Fixes #1877 2023-10-26 07:38:53 +02:00
root.lua perf(root): cache root detection. Fixes #1753 2023-10-16 12:42:54 +02:00
telescope.lua feat(dashboard): c on dahboard now opens telescope for config dir instead of useless init.lua 2023-10-15 09:16:52 +02:00
terminal.lua perf(util): split lazyvim.util in smaller separate modules 2023-10-12 11:48:02 +02:00
toggle.lua feat(toggle): use vim.diagnostic.is_disabled when available (#2217) 2024-01-21 20:41:11 +01:00
ui.lua fix(ui): signcolumn signs on nightly. Fixes #2039 2023-11-30 20:17:07 +01:00