Fix session stuff maybe?
parent
abd7fb8bd4
commit
a0e52916f3
|
|
@ -89,12 +89,12 @@ local function cd_project_in_tab(dir)
|
||||||
|
|
||||||
require("persistence").save()
|
require("persistence").save()
|
||||||
|
|
||||||
vim.fn.execute("tabe | tcd " .. vim.fn.fnameescape(dir))
|
|
||||||
|
|
||||||
if vim.fn.bufnr("Untitled") ~= -1 then
|
if vim.fn.bufnr("Untitled") ~= -1 then
|
||||||
vim.api.nvim_command("bdelete! Untitled")
|
vim.api.nvim_command("bdelete! Untitled")
|
||||||
end
|
end
|
||||||
vim.api.nvim_command("%bdelete")
|
vim.api.nvim_command("%bdelete")
|
||||||
|
|
||||||
|
vim.fn.execute("tabe | tcd " .. vim.fn.fnameescape(dir))
|
||||||
require("persistence").load()
|
require("persistence").load()
|
||||||
local hooks = cd_hooks.get_hooks(vim.g.cd_project_config.hooks, dir, "AFTER_CD")
|
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()
|
require("persistence").save()
|
||||||
|
|
||||||
vim.fn.execute("cd " .. vim.fn.fnameescape(dir))
|
|
||||||
|
|
||||||
if vim.fn.bufnr("Untitled") ~= -1 then
|
if vim.fn.bufnr("Untitled") ~= -1 then
|
||||||
vim.api.nvim_command("bdelete! Untitled")
|
vim.api.nvim_command("bdelete! Untitled")
|
||||||
end
|
end
|
||||||
vim.api.nvim_command("%bdelete")
|
vim.api.nvim_command("%bdelete")
|
||||||
|
|
||||||
|
vim.fn.execute("cd " .. vim.fn.fnameescape(dir))
|
||||||
require("persistence").load()
|
require("persistence").load()
|
||||||
|
|
||||||
local hooks = cd_hooks.get_hooks(vim.g.cd_project_config.hooks, dir, "AFTER_CD")
|
local hooks = cd_hooks.get_hooks(vim.g.cd_project_config.hooks, dir, "AFTER_CD")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue