How can I enhance the flexibility of copilot_node_command
?
#234
Answered
by
MunifTanjim
sontungexpt
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
MunifTanjim
Nov 28, 2023
Replies: 1 comment
-
Are you sure I think your local node_version = vim.split(vim.fn.system("ls -v " .. node_dir .. " | tail -n 1"), "\n")[1] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MunifTanjim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure
local node_version = vim.fn.system("ls -v " .. node_dir .. " | tail -n 1")
is what you expect it to be?I think your
node_version
variable has a line break at the end of it. Try doing: