mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 08:36:46 +00:00
25 lines
458 B
Nix
25 lines
458 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
cfg = config.vim.assistant.copilot;
|
||
|
in {
|
||
|
options.vim.assistant.copilot = {
|
||
|
enable = mkEnableOption "Enable GitHub Copilot";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
vim.startPlugins = ["copilot-lua"];
|
||
|
|
||
|
vim.luaConfigRC.copilot = nvim.dag.entryAnywhere ''
|
||
|
require("copilot").setup({
|
||
|
-- available options: https://github.com/zbirenbaum/copilot.lua
|
||
|
})
|
||
|
'';
|
||
|
};
|
||
|
}
|