feat: added mini.indentscope

This commit is contained in:
Folke Lemaitre
2023-01-04 00:41:57 +01:00
parent a15f44eb89
commit 04b772e3e4

View File

@ -82,13 +82,33 @@ return {
"lukas-reineke/indent-blankline.nvim",
event = "BufReadPre",
config = {
char = "",
-- char = "▏",
char = "",
filetype_exclude = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy" },
show_trailing_blankline_indent = false,
show_current_context = true,
show_current_context = false,
},
},
-- active indent guide and indent text objects
{
"echasnovski/mini.indentscope",
event = "BufReadPre",
config = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = { "alpha", "lazy" },
callback = function()
vim.b.miniindentscope_disable = true
end,
})
require("mini.indentscope").setup({
-- symbol = "▏",
symbol = "",
options = { try_as_border = true },
})
end,
},
-- noicer ui
{
"folke/noice.nvim",
@ -141,6 +161,7 @@ return {
dashboard.section.header.opts.hl = "AlphaHeader"
dashboard.section.buttons.opts.hl = "AlphaButtons"
dashboard.opts.layout[1].val = 8
vim.b.miniindentscope_disable = true
-- close Lazy and re-open when the dashboard is ready
if vim.o.filetype == "lazy" then