From 9680078c6a5cc9d498bba2303fb399528f48a071 Mon Sep 17 00:00:00 2001 From: Gazareth Date: Thu, 5 Jan 2023 20:57:19 +0000 Subject: [PATCH] refactor(alpha): Use terser way of checking vim.g.nvchad_vim_laststatus has not been set --- lua/plugins/configs/alpha.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/configs/alpha.lua b/lua/plugins/configs/alpha.lua index 7a54242..1f32520 100644 --- a/lua/plugins/configs/alpha.lua +++ b/lua/plugins/configs/alpha.lua @@ -98,7 +98,7 @@ vim.api.nvim_create_autocmd("FileType", { pattern = "alpha", callback = function() -- store initial statusline value to be used later - if type(vim.g.nvchad_vim_laststatus) == "nil" then + if not vim.g.nvchad_vim_laststatus then vim.g.nvchad_vim_laststatus = vim.opt.laststatus._value end