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

vimPlugins.copilot-vim: set default g:copilot_node_command
This commit is contained in:
figsoda 2023-03-29 09:38:59 -04:00 committed by GitHub
commit 88c6ed1f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [