Unverified Commit 88c6ed1f authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #223726 from cideM/copilot-vim-add-node

vimPlugins.copilot-vim: set default g:copilot_node_command
parents 10361dda 9821e338
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -301,6 +301,14 @@ self: super: {
    dependencies = with self; [ completion-nvim nvim-treesitter ];
  });

  copilot-vim = super.copilot-vim.overrideAttrs (old: {
    postInstall = ''
      substituteInPlace $out/autoload/copilot/agent.vim \
        --replace "  let node = get(g:, 'copilot_node_command', ''\'''\')" \
                  "  let node = get(g:, 'copilot_node_command', '${nodejs}/bin/node')"
    '';
  });

  cpsm = super.cpsm.overrideAttrs (old: {
    nativeBuildInputs = [ cmake ];
    buildInputs = [