Fix session stuff maybe?

master
Bryan 2024-10-17 07:35:46 -06:00
parent abd7fb8bd4
commit a0e52916f3
1 changed files with 4 additions and 4 deletions

View File

@ -89,12 +89,12 @@ local function cd_project_in_tab(dir)
require("persistence").save()
vim.fn.execute("tabe | tcd " .. vim.fn.fnameescape(dir))
if vim.fn.bufnr("Untitled") ~= -1 then
vim.api.nvim_command("bdelete! Untitled")
end
vim.api.nvim_command("%bdelete")
vim.fn.execute("tabe | tcd " .. vim.fn.fnameescape(dir))
require("persistence").load()
local hooks = cd_hooks.get_hooks(vim.g.cd_project_config.hooks, dir, "AFTER_CD")
@ -110,12 +110,12 @@ local function cd_project(dir)
require("persistence").save()
vim.fn.execute("cd " .. vim.fn.fnameescape(dir))
if vim.fn.bufnr("Untitled") ~= -1 then
vim.api.nvim_command("bdelete! Untitled")
end
vim.api.nvim_command("%bdelete")
vim.fn.execute("cd " .. vim.fn.fnameescape(dir))
require("persistence").load()
local hooks = cd_hooks.get_hooks(vim.g.cd_project_config.hooks, dir, "AFTER_CD")