fix(project): properly close window after changing directory

This commit is contained in:
dotfrag 2024-07-05 09:44:15 +03:00
parent 8f74db318c
commit cfc62428d2

View file

@ -62,7 +62,7 @@ pick = function()
local path = selected[1] local path = selected[1]
local ok = project.set_pwd(path) local ok = project.set_pwd(path)
if ok then if ok then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<Esc>", true, false, true), "n", true) vim.api.nvim_win_close(0, false)
LazyVim.info("Change project dir to " .. path) LazyVim.info("Change project dir to " .. path)
end end
end, end,