nvim-config/lua/plugins/indent.lua
2025-02-27 11:49:14 -05:00

49 lines
884 B
Lua

local indent_exclude_filetypes = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
}
return {
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
event = "VeryLazy",
opts = {
indent = {
char = "",
tab_char = "",
},
scope = { enabled = false },
exclude = {
filetypes = indent_exclude_filetypes,
},
},
},
{
"echasnovski/mini.indentscope",
event = "VeryLazy",
opts = {
-- symbol = "▏",
symbol = "",
options = { try_as_border = true },
},
init = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = indent_exclude_filetypes,
callback = function()
vim.b.miniindentscope_disable = true
end,
})
end,
}
}