mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: update config global variable
This commit is contained in:
parent
e59e8dba26
commit
24320e58f8
5 changed files with 15 additions and 29 deletions
|
@ -20,23 +20,15 @@ end
|
|||
|
||||
local fidget = true
|
||||
local lualine = false
|
||||
local data_exists, custom_ui = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
if type(custom_ui) == "table" then
|
||||
if custom_ui.progress == 1 then
|
||||
fidget = false
|
||||
lualine = true
|
||||
elseif custom_ui.progress == 2 then
|
||||
fidget = true
|
||||
lualine = false
|
||||
elseif custom_ui.progress == 0 then
|
||||
fidget = false
|
||||
lualine = false
|
||||
else
|
||||
fidget = true
|
||||
lualine = false
|
||||
end
|
||||
end
|
||||
if vim.g.pcode_progress == 1 then
|
||||
fidget = false
|
||||
lualine = true
|
||||
elseif vim.g.pcode_progress == 2 then
|
||||
fidget = true
|
||||
lualine = false
|
||||
elseif vim.g.pcode_progress == 0 then
|
||||
fidget = false
|
||||
lualine = false
|
||||
else
|
||||
fidget = true
|
||||
lualine = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue