File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1176,11 +1176,15 @@ if not vim.g.vscode then
11761176 function ()
11771177 local os_uname = vim .uv .os_uname ().sysname :lower ()
11781178 local os = os_uname :find (" win" ) and " win32" or os_uname
1179- local download_path = ' ~/.cache/node_modules/@github/copilot-language-server/native/' .. os .. ' -x64/copilot-language-server'
1179+ local dotexe = vim .env .APPDATA and ' .exe' or ' '
1180+ local download_path = ' $HOME/.cache/node_modules/.pnpm/node_modules/@github/copilot-language-server-' .. os .. ' -x64/copilot-language-server' .. dotexe
11801181 -- local download_url = 'https://github.com/github/copilot-language-server-release/releases/download/1.397.0/copilot-language-server-' .. os .. '-x64-1.397.0.zip'
11811182
1183+ vim .loop .fs_mkdir (vim .env .HOME .. ' /.local' , tonumber (' 777' , 8 )) -- chmod 777 ~/.local
1184+ vim .loop .fs_mkdir (vim .env .HOME .. ' /.local/bin' , tonumber (' 777' , 8 )) -- chmod 777 ~/.local/bin
1185+
11821186 if vim .fn .executable (' copilot-language-server' ) == 0 then
1183- sendSequence (' pixi g install pnpm; pnpm install --dir ~ /.cache @github/copilot-language-server' , ' mkdir -p ~/.local/bin; cp ' .. download_path .. ' ~ /.local/bin' )
1187+ sendSequence (' pixi g install pnpm; pnpm install --dir $HOME /.cache @github/copilot-language-server' , ' cp ' .. download_path .. ' $HOME /.local/bin' )
11841188 -- sendSequence ( 'pixi exec curl -C- -o $HOME/.cache/copilot.zip -L' .. download_url, '7z x $HOME/.cache/copilot.zip -o"$HOME/.local/bin"')
11851189 end
11861190
You can’t perform that action at this time.
0 commit comments