mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
plugins/copilot-vim: remove deprecation warning
This commit is contained in:
parent
eec8d6b1b2
commit
b30e8a1eda
1 changed files with 32 additions and 38 deletions
|
@ -3,46 +3,40 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
} @ args:
|
||||||
with lib;
|
with lib; (
|
||||||
(
|
with (import ../helpers.nix {inherit lib;}).vim-plugin;
|
||||||
with (import ../helpers.nix {inherit lib;}).vim-plugin;
|
mkVimPlugin args {
|
||||||
mkVimPlugin args {
|
name = "copilot-vim";
|
||||||
name = "copilot-vim";
|
description = "copilot.vim";
|
||||||
description = "copilot.vim";
|
package = pkgs.vimPlugins.copilot-vim;
|
||||||
package = pkgs.vimPlugins.copilot-vim;
|
globalPrefix = "copilot_";
|
||||||
globalPrefix = "copilot_";
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
nodeCommand = mkDefaultOpt {
|
nodeCommand = mkDefaultOpt {
|
||||||
global = "node_command";
|
global = "node_command";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "${pkgs.nodejs-18_x}/bin/node";
|
default = "${pkgs.nodejs-18_x}/bin/node";
|
||||||
description = "Tell Copilot what `node` binary to use.";
|
description = "Tell Copilot what `node` binary to use.";
|
||||||
};
|
};
|
||||||
|
|
||||||
filetypes = mkDefaultOpt {
|
filetypes = mkDefaultOpt {
|
||||||
type = with types; attrsOf bool;
|
type = with types; attrsOf bool;
|
||||||
description = ''
|
description = ''
|
||||||
A dictionary mapping file types to their enabled status
|
A dictionary mapping file types to their enabled status
|
||||||
|
|
||||||
Default: `{}`
|
Default: `{}`
|
||||||
'';
|
'';
|
||||||
example = {
|
example = {
|
||||||
"*" = false;
|
"*" = false;
|
||||||
python = true;
|
python = true;
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
proxy = mkDefaultOpt {
|
|
||||||
type = types.str;
|
|
||||||
description = "Tell Copilot what proxy server to use.";
|
|
||||||
example = "localhost:3128";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
)
|
proxy = mkDefaultOpt {
|
||||||
// {
|
type = types.str;
|
||||||
imports = [
|
description = "Tell Copilot what proxy server to use.";
|
||||||
(lib.mkRenamedOptionModule ["plugins" "copilot"] ["plugins" "copilot-vim"])
|
example = "localhost:3128";
|
||||||
];
|
};
|
||||||
}
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue