zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.63k stars 75 forks source link

get_node_version() not working with custom vim.opt.shell #185

Closed jcapblancq closed 1 year ago

jcapblancq commented 1 year ago

get_node_version() was not working for me with a custom vim.opt.shell.

Using a table instead of a concatenation solved the issue.

MunifTanjim commented 1 year ago

What's the value of your custom vim.opt.shell?

jcapblancq commented 1 year ago

What's the value of your custom vim.opt.shell?

` vim.opt.shell = "path_to_custom_shell_wrapper.bat" vim.opt.shellcmdflag = "" vim.opt.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode" vim.opt.shellpipe = "2>&1 | Tee-Object -Encoding UTF8 %s; exit $LastExitCode" vim.opt.shellquote = "" vim.opt.shellxquote = ""

`

MunifTanjim commented 1 year ago

Thanks!