diff options
author | LostNeophyte <[email protected]> | 2023-01-25 20:35:07 +0100 |
---|---|---|
committer | LostNeophyte <[email protected]> | 2023-01-25 20:35:14 +0100 |
commit | bfe8ee9cba642525a5bbbe0b27f6049ba9ee1ef4 (patch) | |
tree | a8090330ae29bcb109ec3690b9226b837d799a37 /lua/lvim/core/indentlines.lua | |
parent | 75b653cc623a8cd6de397e42f21b838a065eb0e0 (diff) |
fix: don't overriding user's config
Diffstat (limited to 'lua/lvim/core/indentlines.lua')
-rw-r--r-- | lua/lvim/core/indentlines.lua | 42 |
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() |