feat: TabNine and Copilot assistants

This commit is contained in:
NotAShelf 2023-02-06 04:14:01 +03:00
commit 78d3ae31d1
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
7 changed files with 112 additions and 1 deletions

View file

@ -0,0 +1,24 @@
{
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
})
'';
};
}