From ec7b15feada4dcf13a0ed15cff2606bad38017ee Mon Sep 17 00:00:00 2001 From: Marwan Mustafa Date: Wed, 1 Sep 2021 07:57:56 +1200 Subject: [PATCH] fix(plugin): indentline using config instead of setup --- lua/plugins/configs/others.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 9b7ac0bc..ea9478d4 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -43,14 +43,14 @@ M.better_escape = function() end M.blankline = function() - vim.g.indentLine_enabled = 1 - vim.g.indent_blankline_char = "▏" - - vim.g.indent_blankline_filetype_exclude = { "help", "terminal", "dashboard", "packer" } - vim.g.indent_blankline_buftype_exclude = { "terminal" } - - vim.g.indent_blankline_show_trailing_blankline_indent = false - vim.g.indent_blankline_show_first_indent_level = false + require("indent_blankline").setup { + indentLine_enabled = 1, + char = "▏", + indent_blankline_filetype_exclude = { "help", "terminal", "dashboard", "packer" }, + indent_blankline_buftype_exclude = { "terminal" }, + indent_blankline_show_trailing_blankline_indent = false, + indent_blankline_show_first_indent_level = false, + } end M.colorizer = function()