auto delete buffers and chdir when switching sessions
iujakchu opened this issue · comments
iujakchu commented
buffers are not closed when using telescope.
I have to use this workaround:
telescope = { -- options for the telescope extension
-- jump between session smoothly
after_source = function(param)
vim.api.nvim_command "%bd"
local path = param.dir_path
print(path)
if string.find(path, "/") ~= 1 then
vim.api.nvim_command("cd " .. vim.fn.expand "~" .. "/" .. path)
vim.api.nvim_command("tcd " .. vim.fn.expand "~" .. "/" .. path)
else
vim.api.nvim_command("cd " .. path)
vim.api.nvim_command("tcd " .. path)
end
end,
},
make this by default?