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,41 +5,59 @@ 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 = { },
"help", filetypes = {
"terminal", "help",
"alpha", "terminal",
"packer", "alpha",
"lsp-installer", "packer",
"lspinfo", "lsp-installer",
"mason.nvim", "lspinfo",
"mason", "mason.nvim",
"man", "mason",
"OverseerForm", "man",
"noice", "OverseerForm",
"lazy", "noice",
"NeogitStatus", "lazy",
"NeogitHelpPopup", "NeogitStatus",
"NeogitPopup", "NeogitHelpPopup",
"NeogitLogView", "NeogitPopup",
"norg" "NeogitLogView",
} "norg"
}
g.indent_blankline_buftype_exclude = { "terminal", "nofile" } },
g.indent_blankline_show_trailing_blankline_indent = false indent = {
g.indent_blankline_show_first_indent_level = true char = "",
smart_indent_cap = true
return { },
show_current_context = true, scope = {
show_current_context_start = true, enabled = true,
} include = {
node_type = {
lua = {
"return_statement",
"table_constructor"
}
}
},
highlight = {
"RainbowDelimiterRed",
"RainbowDelimiterYellow",
"RainbowDelimiterBlue",
"RainbowDelimiterOrange",
"RainbowDelimiterGreen",
"RainbowDelimiterViolet",
"RainbowDelimiterCyan",
}
}
})
end, end,
}, },
} }