mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-30 06:39:33 +02:00
44 lines
1 KiB
Lua
44 lines
1 KiB
Lua
|
local M = {}
|
||
|
|
||
|
M.config = function()
|
||
|
vim.g.indent_blankline_buftype_exclude = { "terminal", "nofile" }
|
||
|
vim.g.indent_blankline_filetype_exclude = {
|
||
|
"help",
|
||
|
"startify",
|
||
|
"dashboard",
|
||
|
"packer",
|
||
|
"neogitstatus",
|
||
|
"NvimTree",
|
||
|
"Trouble",
|
||
|
"text",
|
||
|
}
|
||
|
vim.g.indentLine_enabled = 1
|
||
|
vim.g.indent_blankline_char = "▏"
|
||
|
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||
|
vim.g.indent_blankline_show_first_indent_level = true
|
||
|
vim.g.indent_blankline_use_treesitter = false
|
||
|
vim.g.indent_blankline_show_current_context = true
|
||
|
lvim.builtin.indentlines = {
|
||
|
active = true,
|
||
|
on_config_done = nil,
|
||
|
options = {
|
||
|
show_current_context = true,
|
||
|
},
|
||
|
}
|
||
|
end
|
||
|
|
||
|
M.setup = function()
|
||
|
local status_ok, indent_blankline = pcall(require, "indent_blankline")
|
||
|
if not status_ok then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
indent_blankline.configure(lvim.builtin.indentlines.options)
|
||
|
|
||
|
if lvim.builtin.indentlines.on_config_done then
|
||
|
lvim.builtin.indentlines.on_config_done()
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return M
|