summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2022-09-21 23:14:08 +0430
committerGitHub <[email protected]>2022-09-21 14:44:08 -0400
commit538fbd6f686905547c3fa26354611221429715f8 (patch)
tree1b8704ad11de28a389ef6aee822a08651afbb7aa
parent526c010c80de00815f3fb53e1461fcbeabc55f12 (diff)
fix(indentblankline): make sure to use the new syntax for all options (#3058)
-rw-r--r--lua/lvim/core/indentlines.lua33
1 files changed, 16 insertions, 17 deletions
diff --git a/lua/lvim/core/indentlines.lua b/lua/lvim/core/indentlines.lua
index 3039dd77..37be1e22 100644
--- a/lua/lvim/core/indentlines.lua
+++ b/lua/lvim/core/indentlines.lua
@@ -1,27 +1,26 @@
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 = {
+ enabled = true,
+ buftype_exclude = { "terminal", "nofile" },
+ filetype_exclude = {
+ "help",
+ "startify",
+ "dashboard",
+ "packer",
+ "neogitstatus",
+ "NvimTree",
+ "Trouble",
+ "text",
+ },
+ char = "▏",
+ show_trailing_blankline_indent = false,
+ show_first_indent_level = false,
+ use_treesitter = true,
show_current_context = true,
},
}