refactor(alpha): Use terser way of checking vim.g.nvchad_vim_laststatus has not been set

This commit is contained in:
Gazareth 2023-01-05 20:57:19 +00:00 committed by Sidhanth Rathod
parent f67c629249
commit 9680078c6a
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ vim.api.nvim_create_autocmd("FileType", {
pattern = "alpha", pattern = "alpha",
callback = function() callback = function()
-- store initial statusline value to be used later -- 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 vim.g.nvchad_vim_laststatus = vim.opt.laststatus._value
end end