fix node 20+ not found in copilot when in directory setting older node version
This commit is contained in:
parent
db14faa364
commit
f1d6c8b69c
2 changed files with 5 additions and 2 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue