summaryrefslogtreecommitdiff
path: root/lua/lvim/core/indentlines.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/core/indentlines.lua')
-rw-r--r--lua/lvim/core/indentlines.lua42
1 files changed, 19 insertions, 23 deletions
diff --git a/lua/lvim/core/indentlines.lua b/lua/lvim/core/indentlines.lua
index 12521b3f..2c974b96 100644
--- a/lua/lvim/core/indentlines.lua
+++ b/lua/lvim/core/indentlines.lua
@@ -1,31 +1,27 @@
local M = {}
M.config = function()
- local config = {
- opts = {
- enabled = true,
- buftype_exclude = { "terminal", "nofile" },
- filetype_exclude = {
- "help",
- "startify",
- "dashboard",
- "lazy",
- "neogitstatus",
- "NvimTree",
- "Trouble",
- "text",
- },
- char = lvim.icons.ui.LineLeft,
- context_char = lvim.icons.ui.LineLeft,
- show_trailing_blankline_indent = false,
- show_first_indent_level = true,
- use_treesitter = true,
- show_current_context = true,
+ lvim.builtin.indentlines.opts = {
+ enabled = true,
+ buftype_exclude = { "terminal", "nofile" },
+ filetype_exclude = {
+ "help",
+ "startify",
+ "dashboard",
+ "lazy",
+ "neogitstatus",
+ "NvimTree",
+ "Trouble",
+ "text",
},
+ char = lvim.icons.ui.LineLeft,
+ context_char = lvim.icons.ui.LineLeft,
+ show_trailing_blankline_indent = false,
+ show_first_indent_level = true,
+ use_treesitter = true,
+ show_current_context = true,
}
- ---@cast config +LvimBuiltin
- require("lvim.core.builtins").extend_defaults(config)
- lvim.builtin.indentlines = config
+ lvim.builtin.indentlines = require("lvim.core.builtins").add_completion "indentlines"
end
M.setup = function()