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 = "${./.}";
|
||||
nodejs_20_path = "${pkgs.nodejs_23}";
|
||||
# This will look at all inputs and grab any prefixed with `nvim_plugin-`
|
||||
pluginPaths =
|
||||
builtins.foldl' (dirs: name: { "${name}" = inputs.${name}.outPath; } // dirs) nixPkgsPlugins
|
||||
|
@ -273,7 +274,7 @@
|
|||
# ocamlPackages.ocaml-lsp # ocaml
|
||||
# Other
|
||||
typescript
|
||||
nodejs_20
|
||||
nodejs_23
|
||||
clang
|
||||
# zig
|
||||
(pkgs.rust-bin.stable.latest.default.override {
|
||||
|
|
|
@ -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