We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64234a7 commit 79c86f9Copy full SHA for 79c86f9
lua/copilot/util.lua
@@ -28,9 +28,10 @@ M.get_completion_params = function()
28
end
29
30
M.get_copilot_path = function(plugin_path)
31
- local root_path = plugin_path or vim.fn.stdpath("data") .. "/site/pack/packer/"
+ local root_path = plugin_path or vim.fn.stdpath("data")
32
+ local packer_path = root_path .. "/site/pack/packer/"
33
for _, loc in ipairs{"opt", "start"} do
- local copilot_path = root_path .. loc .. "/copilot.lua/copilot/index.js"
34
+ local copilot_path = packer_path .. loc .. "/copilot.lua/copilot/index.js"
35
if vim.fn.filereadable(copilot_path) ~= 0 then
36
return copilot_path
37
0 commit comments