From 5742567630009a2f88a74614b3ff2330a91525e1 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Thu, 2 Sep 2021 08:45:05 +0530 Subject: [PATCH] avoid using globals in blankline config --- lua/plugins/configs/others.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 12f0860..2bc7c27 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -43,9 +43,6 @@ M.better_escape = function() end M.blankline = function() - 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 = "▏", @@ -59,6 +56,8 @@ M.blankline = function() "TelescopeResults", }, indent_blankline_buftype_exclude = { "terminal" }, + show_trailing_blankline_indent = false, + show_first_indent_level = false, } end