diff --git a/flake.nix b/flake.nix index 5f19cf2..fcb84e9 100644 --- a/flake.nix +++ b/flake.nix @@ -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 { diff --git a/lua/plugins/cmp_autocompletion.lua b/lua/plugins/cmp_autocompletion.lua index 1217474..030c9fb 100644 --- a/lua/plugins/cmp_autocompletion.lua +++ b/lua/plugins/cmp_autocompletion.lua @@ -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" },