123456789101112131415161718192021222324252627282930313233343536373839404142 |
- local M = {}
- M.config = function()
- lvim.builtin.indentlines = {
- active = true,
- on_config_done = nil,
- options = {
- enabled = true,
- buftype_exclude = { "terminal", "nofile" },
- filetype_exclude = {
- "help",
- "startify",
- "dashboard",
- "packer",
- "neogitstatus",
- "NvimTree",
- "Trouble",
- "text",
- },
- char = lvim.icons.ui.LineLeft,
- show_trailing_blankline_indent = false,
- show_first_indent_level = true,
- use_treesitter = true,
- show_current_context = true,
- },
- }
- end
- M.setup = function()
- local status_ok, indent_blankline = pcall(reload, "indent_blankline")
- if not status_ok then
- return
- end
- indent_blankline.setup(lvim.builtin.indentlines.options)
- if lvim.builtin.indentlines.on_config_done then
- lvim.builtin.indentlines.on_config_done()
- end
- end
- return M
|