refactor(nvim): update to indent-blankline v3

This commit is contained in:
Price Hiller 2023-09-27 23:43:45 -05:00
parent e7fa1ef699
commit 2a218e14c6
No known key found for this signature in database

View File

@ -5,14 +5,15 @@ return {
dependencies = { dependencies = {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
}, },
opts = function() config = function()
local g = vim.g require("ibl").setup()
require("ibl").setup({
g.indent_blankline_char = "" exclude = {
g.indent_blankline_context_char = "" buftypes = {
"terminal",
-- Disable indent-blankline on these pages. "nofile"
g.indent_blankline_filetype_exclude = { },
filetypes = {
"help", "help",
"terminal", "terminal",
"alpha", "alpha",
@ -31,15 +32,32 @@ return {
"NeogitLogView", "NeogitLogView",
"norg" "norg"
} }
},
g.indent_blankline_buftype_exclude = { "terminal", "nofile" } indent = {
g.indent_blankline_show_trailing_blankline_indent = false char = "",
g.indent_blankline_show_first_indent_level = true smart_indent_cap = true
},
return { scope = {
show_current_context = true, enabled = true,
show_current_context_start = true, include = {
node_type = {
lua = {
"return_statement",
"table_constructor"
} }
}
},
highlight = {
"RainbowDelimiterRed",
"RainbowDelimiterYellow",
"RainbowDelimiterBlue",
"RainbowDelimiterOrange",
"RainbowDelimiterGreen",
"RainbowDelimiterViolet",
"RainbowDelimiterCyan",
}
}
})
end, end,
}, },
} }