Add delay before changing project. Maybe prevent unnamed buffers from being open?

master
Bryan 2024-10-17 07:07:16 -06:00
parent 7b8ba2b390
commit 8ef4cd0fdc
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ local function cd_project_in_tab(dir)
end
require("persistence").save()
vim.cmd("sleep100m")
vim.fn.execute("tabe | tcd " .. vim.fn.fnameescape(dir))
@ -106,6 +107,7 @@ local function cd_project(dir)
vim.g.cd_project_current_project = dir
require("persistence").save()
vim.cmd("sleep100m")
vim.fn.execute("cd " .. vim.fn.fnameescape(dir))