Add delay before changing project. Maybe prevent unnamed buffers from being open?
parent
7b8ba2b390
commit
8ef4cd0fdc
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue