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
|
@ -225,6 +225,7 @@
|
||||||
}
|
}
|
||||||
({
|
({
|
||||||
storePath = "${./.}";
|
storePath = "${./.}";
|
||||||
|
nodejs_20_path = "${pkgs.nodejs_23}";
|
||||||
# This will look at all inputs and grab any prefixed with `nvim_plugin-`
|
# This will look at all inputs and grab any prefixed with `nvim_plugin-`
|
||||||
pluginPaths =
|
pluginPaths =
|
||||||
builtins.foldl' (dirs: name: { "${name}" = inputs.${name}.outPath; } // dirs) nixPkgsPlugins
|
builtins.foldl' (dirs: name: { "${name}" = inputs.${name}.outPath; } // dirs) nixPkgsPlugins
|
||||||
|
@ -273,7 +274,7 @@
|
||||||
# ocamlPackages.ocaml-lsp # ocaml
|
# ocamlPackages.ocaml-lsp # ocaml
|
||||||
# Other
|
# Other
|
||||||
typescript
|
typescript
|
||||||
nodejs_20
|
nodejs_23
|
||||||
clang
|
clang
|
||||||
# zig
|
# zig
|
||||||
(pkgs.rust-bin.stable.latest.default.override {
|
(pkgs.rust-bin.stable.latest.default.override {
|
||||||
|
|
|
@ -22,7 +22,9 @@ return {
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
cmd = "Copilot",
|
cmd = "Copilot",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
opts = {},
|
opts = {
|
||||||
|
copilot_node_command = NIX.nodejs_20_path and (NIX.nodejs_20_path .. "/bin/node") or "node",
|
||||||
|
},
|
||||||
main = "copilot",
|
main = "copilot",
|
||||||
},
|
},
|
||||||
{ "zbirenbaum/copilot-cmp", opts = {}, main = "copilot_cmp" },
|
{ "zbirenbaum/copilot-cmp", opts = {}, main = "copilot_cmp" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue