api-gpt-4o-search-high· unknown
Search Arena v1 (7K preferences)
Improve code: [code]
- User
Improve code:
codelocal 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") vim.fn.jobstart({ "git", "clone", "--depth=1", "https://github.com/" .. repo, dir }) end end - Assistant
Your function for cloning a GitHub repository into Neovim's
packdirectory is functional but can be enhanced for better reliability and user feedback. Here's an improved version:lua
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.