Fix names in code: [code]
- User
Fix names in code:
local function clone_github(repo) local dir = vim.fn.stdpath("data") .. "/site/pack/p/start/" .. repo:match("[^/]*$") if not vim.loop.fs_stat(dir) then vim.notify("Cloning " .. repo, vim.log.levels.INFO) vim.fn.jobstart({ "git", "clone", "--depth=1", "https://github.com/" .. repo, dir }) end end Assistant
Here's the corrected code with fixed names:
local function clone_github(repo) local dir = vim.fn.stdpath("data") .. "/site/pack/packer/start/" .. vim.fn.fnamemodify(repo, ":t") if not vim.loop.fs_stat(dir) then vim.notify("Cloning " .. repo, vim.log.levels.INFO) vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/" .. repo, dir }) end endThe main changes made are:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.