From 01f2263ffe7d2bdb9fd6230765d2882547e7206d Mon Sep 17 00:00:00 2001 From: jrreed Date: Wed, 20 Aug 2025 08:55:47 -0400 Subject: [PATCH] Fixes regression where node_command contained spaces vim.split was causing the node_command passed in to fail if it contained any spaces --- lua/copilot/lsp/nodejs.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/copilot/lsp/nodejs.lua b/lua/copilot/lsp/nodejs.lua index c6a38124..0abb585d 100644 --- a/lua/copilot/lsp/nodejs.lua +++ b/lua/copilot/lsp/nodejs.lua @@ -13,8 +13,7 @@ local M = { ---@return nil|string node_version_error function M.get_node_version() if not M.node_version then - local version_cmd = vim.split(M.node_command, " ") - table.insert(version_cmd, "--version") + local version_cmd = { M.node_command, "--version" } local node_version_major = 0 local node_version = ""