2022-09-21 16:48:15 +02:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
M.config = function()
|
|
|
|
lvim.builtin.indentlines = {
|
|
|
|
active = true,
|
|
|
|
on_config_done = nil,
|
|
|
|
options = {
|
2022-09-21 20:44:08 +02:00
|
|
|
enabled = true,
|
|
|
|
buftype_exclude = { "terminal", "nofile" },
|
|
|
|
filetype_exclude = {
|
|
|
|
"help",
|
|
|
|
"startify",
|
|
|
|
"dashboard",
|
|
|
|
"packer",
|
|
|
|
"neogitstatus",
|
|
|
|
"NvimTree",
|
|
|
|
"Trouble",
|
|
|
|
"text",
|
|
|
|
},
|
|
|
|
char = "▏",
|
|
|
|
show_trailing_blankline_indent = false,
|
2022-09-21 20:47:50 +02:00
|
|
|
show_first_indent_level = true,
|
2022-09-21 20:44:08 +02:00
|
|
|
use_treesitter = true,
|
2022-09-21 16:48:15 +02:00
|
|
|
show_current_context = true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
M.setup = function()
|
|
|
|
local status_ok, indent_blankline = pcall(require, "indent_blankline")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2022-09-21 17:09:11 +02:00
|
|
|
indent_blankline.setup(lvim.builtin.indentlines.options)
|
2022-09-21 16:48:15 +02:00
|
|
|
|
|
|
|
if lvim.builtin.indentlines.on_config_done then
|
|
|
|
lvim.builtin.indentlines.on_config_done()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|