Temporary fix to mitigate the issue no being able to get CWD in setup

This commit is contained in:
Diogo Duarte
2024-03-31 18:12:15 +01:00
parent d55ca404aa
commit b6eecdccb9

View File

@@ -106,6 +106,7 @@ local _save_last_directory = ya.sync(function(state)
ps.sub("hover", function()
local folder = Folder:by_kind(Folder.CURRENT)
state.curr_dir.cursor = folder.cursor
state.curr_dir.desc = tostring(folder.cwd) -- FIX Not needed when the we are able to get the CWD in the setup
end)
end)