Skip to content

Commit e4156de

Browse files
fix: regression where node_command contained spaces (#541)
Co-authored-by: jrreed <[email protected]> Fixes #538
1 parent 3fd7b50 commit e4156de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/copilot/lsp/nodejs.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ local M = {
1313
---@return nil|string node_version_error
1414
function M.get_node_version()
1515
if not M.node_version then
16-
local version_cmd = vim.split(M.node_command, " ")
17-
table.insert(version_cmd, "--version")
16+
local version_cmd = { M.node_command, "--version" }
1817

1918
local node_version_major = 0
2019
local node_version = ""

0 commit comments

Comments
 (0)