fix node 20+ not found in copilot when in directory setting older node version

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-04-14 11:12:50 -05:00
parent db14faa364
commit f1d6c8b69c
2 changed files with 5 additions and 2 deletions

View file

@ -22,7 +22,9 @@ return {
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
opts = {},
opts = {
copilot_node_command = NIX.nodejs_20_path and (NIX.nodejs_20_path .. "/bin/node") or "node",
},
main = "copilot",
},
{ "zbirenbaum/copilot-cmp", opts = {}, main = "copilot_cmp" },