From 39102109b80b77ed43036401bbf39c9016c373a9 Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Sun, 2 May 2021 10:33:25 +0600 Subject: [PATCH] Don't apply `g:lualine` config if config given to setup function --- lua/lualine/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lualine/init.lua b/lua/lualine/init.lua index f6376f5..1d76875 100644 --- a/lua/lualine/init.lua +++ b/lua/lualine/init.lua @@ -273,7 +273,9 @@ local function set_statusline() end local function setup(user_config) - apply_configuration(vim.g.lualine) + if not user_config then + apply_configuration(vim.g.lualine) + end apply_configuration(user_config) check_single_separator() setup_theme()