Something went wrong. Try again.
forked from nix-community/nixvim
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, pkgs, ...}:let inherit (lib) mkOption types;inlib.nixvim.plugins.mkVimPlugin { name = "copilot-vim"; globalPrefix = "copilot_"; description = "Official Neovim plugin for GitHub Copilot.";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsOptions = { node_command = mkOption { type = with types; nullOr str; default = lib.getExe pkgs.nodejs_22; defaultText = lib.literalExpression "lib.getExe pkgs.nodejs_22"; description = "Tell Copilot what `node` binary to use."; };
filetypes = mkOption { type = with types; nullOr (attrsOf bool); default = null; description = "A dictionary mapping file types to their enabled status."; example = { "*" = false; python = true; }; };
proxy = mkOption { type = with types; nullOr str; default = null; description = '' Tell Copilot what proxy server to use.
If this is not set, Copilot will use the value of environment variables like `$HTTPS_PROXY`. ''; example = "localhost:3128"; };
proxy_strict_ssl = lib.nixvim.mkNullOrOption types.bool '' Corporate proxies sometimes use a man-in-the-middle SSL certificate which is incompatible with GitHub Copilot. To work around this, SSL certificate verification can be disabled by setting this option to `false`.
You can also tell `Node.js` to disable SSL verification by setting the `$NODE_TLS_REJECT_UNAUTHORIZED` environment variable to `"0"`. '';
workspace_folders = lib.nixvim.mkNullOrOption (with types; listOf str) '' A list of "workspace folders" or project roots that Copilot may use to improve to improve the quality of suggestions.
Example: ["~/Projects/myproject"]
You can also set `b:workspace_folder` for an individual buffer and newly seen values will be added automatically. ''; };
settingsExample = { filetypes = { "*" = false; python = true; }; proxy = "localhost:3128"; proxy_strict_ssl = false; workspace_folders = [ "~/Projects/myproject" ]; };}