mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
refactor(alpha): Use terser way of checking vim.g.nvchad_vim_laststatus has not been set
This commit is contained in:
parent
f67c629249
commit
9680078c6a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue