Fix empty file bug
This commit is contained in:
@@ -124,7 +124,7 @@ local function lazygitconfig()
|
|||||||
else
|
else
|
||||||
config_file = "~/.config/jesseduffield/lazygit/config.yml"
|
config_file = "~/.config/jesseduffield/lazygit/config.yml"
|
||||||
end
|
end
|
||||||
if fn.empty(fn.glob(config_file)) then
|
if fn.empty(fn.glob(config_file)) == 1 then
|
||||||
-- file does not exist
|
-- file does not exist
|
||||||
-- check if user wants to create it
|
-- check if user wants to create it
|
||||||
local answer = fn.confirm("File " .. config_file .. " does not exist.\nDo you want to create the file and populate it with the default configuration?", "&Yes\n&No")
|
local answer = fn.confirm("File " .. config_file .. " does not exist.\nDo you want to create the file and populate it with the default configuration?", "&Yes\n&No")
|
||||||
|
|||||||
Reference in New Issue
Block a user