LazyVim.LazyVim/lua/lazyvim/config
Zhou Fang 32e575aa75
feat(keymaps): enable toggling in quickfix list and location list (#5608)
## Description

This PR addresses issue #5503 by modifying the behavior of `<leader>xq`
and `<leader>xl` so that they toggle the quickfix and location lists
rather than simply opening them.

To prevent the full Lua error stack from being printed when no list
exists prior to using `copen` or `lopen`, I've wrapped the commands in
`pcall` and used `vim.notify` to alert the user in the same manner as
before.

## Related Issue(s)

#5503

## Screenshots


https://github.com/user-attachments/assets/b22b1861-e6e5-4d8a-967e-f760cca15719

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-02-15 08:27:01 +01:00
..
autocmds.lua fix(autocmds): remove snacks_win from close_with_q, since they have their own keymaps 2024-12-10 00:31:36 +01:00
init.lua chore(main): release 14.13.0 (#5574) 2025-02-12 21:38:40 +01:00
keymaps.lua feat(keymaps): enable toggling in quickfix list and location list (#5608) 2025-02-15 08:27:01 +01:00
options.lua feat(snacks): added leader-ua to toggle global animations 2024-12-12 13:47:29 +01:00