mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(indent-blankline): add which-key toggles (#4122)
## Description Add which-key toggle mappings for toggling both the indention guides, and also scope highlight on a per buffer basis. ## Screenshots  ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --------- Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
c8ab5d7554
commit
a997152eb2
1 changed files with 33 additions and 21 deletions
|
@ -225,28 +225,40 @@ return {
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
event = "LazyFile",
|
event = "LazyFile",
|
||||||
opts = {
|
opts = function()
|
||||||
indent = {
|
LazyVim.toggle.map("<leader>ug", {
|
||||||
char = "│",
|
name = "Indention Guides",
|
||||||
tab_char = "│",
|
get = function()
|
||||||
},
|
return require("ibl.config").get_config(0).enabled
|
||||||
scope = { show_start = false, show_end = false },
|
end,
|
||||||
exclude = {
|
set = function(state)
|
||||||
filetypes = {
|
require("ibl").setup_buffer(0, { enabled = state })
|
||||||
"help",
|
end,
|
||||||
"alpha",
|
})
|
||||||
"dashboard",
|
|
||||||
"neo-tree",
|
return {
|
||||||
"Trouble",
|
indent = {
|
||||||
"trouble",
|
char = "│",
|
||||||
"lazy",
|
tab_char = "│",
|
||||||
"mason",
|
|
||||||
"notify",
|
|
||||||
"toggleterm",
|
|
||||||
"lazyterm",
|
|
||||||
},
|
},
|
||||||
},
|
scope = { show_start = false, show_end = false },
|
||||||
},
|
exclude = {
|
||||||
|
filetypes = {
|
||||||
|
"help",
|
||||||
|
"alpha",
|
||||||
|
"dashboard",
|
||||||
|
"neo-tree",
|
||||||
|
"Trouble",
|
||||||
|
"trouble",
|
||||||
|
"lazy",
|
||||||
|
"mason",
|
||||||
|
"notify",
|
||||||
|
"toggleterm",
|
||||||
|
"lazyterm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue