feat: add project_root in AskOptions so that project root can be specified from api (#2652)
This commit is contained in:
@@ -193,6 +193,7 @@ local buf_names = {}
|
||||
---@param opts? {normalize?:boolean, buf?:number}
|
||||
---@return string
|
||||
function M.get(opts)
|
||||
if Config.ask_opts.project_root then return Config.ask_opts.project_root end
|
||||
local cwd = vim.uv.cwd()
|
||||
if Config.behaviour.use_cwd_as_project_root then
|
||||
if cwd and cwd ~= "" then return cwd end
|
||||
|
||||
Reference in New Issue
Block a user