mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
66 lines
1.5 KiB
Lua
66 lines
1.5 KiB
Lua
return {
|
|
-- Active indent guide and indent text objects. When you're browsing
|
|
-- code, this highlights the current level of indentation, and animates
|
|
-- the highlighting.
|
|
{
|
|
"echasnovski/mini.indentscope",
|
|
version = false, -- wait till new 0.7.0 release to put it back on semver
|
|
event = "LazyFile",
|
|
opts = {
|
|
-- symbol = "▏",
|
|
symbol = "│",
|
|
options = { try_as_border = true },
|
|
},
|
|
init = function()
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = {
|
|
"Trouble",
|
|
"alpha",
|
|
"dashboard",
|
|
"fzf",
|
|
"help",
|
|
"lazy",
|
|
"mason",
|
|
"neo-tree",
|
|
"notify",
|
|
"snacks_dashboard",
|
|
"snacks_notif",
|
|
"snacks_terminal",
|
|
"snacks_win",
|
|
"toggleterm",
|
|
"trouble",
|
|
},
|
|
callback = function()
|
|
vim.b.miniindentscope_disable = true
|
|
end,
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
pattern = "SnacksDashboardOpened",
|
|
callback = function(data)
|
|
vim.b[data.buf].miniindentscope_disable = true
|
|
end,
|
|
})
|
|
end,
|
|
},
|
|
|
|
-- disable inent-blankline scope when mini-indentscope is enabled
|
|
{
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
optional = true,
|
|
event = "LazyFile",
|
|
opts = {
|
|
scope = { enabled = false },
|
|
},
|
|
},
|
|
|
|
-- disable snacks scroll when mini-indentscope is enabled
|
|
{
|
|
"snacks.nvim",
|
|
opts = {
|
|
indent = {
|
|
scope = { enabled = false },
|
|
},
|
|
},
|
|
},
|
|
}
|