mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 13:09:27 +03:00
vimPlugins.copilot-vim: set default g:copilot_node_command
copilot-vim requires NodeJS to function properly since the plugin bundles JS files. You can set the path to the NodeJS that should be used manually, in your configuration. We can set the default value to a valid NodeJS binary, so in the general case, users don't need to do anything for this plugin to work. Users can still set g:copilot_node_command manually, if they want to.
This commit is contained in:
parent
20a99ed3b4
commit
9821e338d4
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user