diff --git a/lua/cd-project/api.lua b/lua/cd-project/api.lua index ef38314..60c4405 100644 --- a/lua/cd-project/api.lua +++ b/lua/cd-project/api.lua @@ -161,7 +161,8 @@ local function add_current_project(opts) if not project_dir then if opts.auto then - return utils.log_err("Can't find project path of current file") + utils.log_err("Can't find project path of current file") + return end project_dir = vim.fn.getcwd() end