diff --git a/modules/assistant/copilot.nix b/modules/assistant/copilot.nix deleted file mode 100644 index b15d262..0000000 --- a/modules/assistant/copilot.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - 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" - pkgs.nodejs-slim-16_x - ]; - - vim.luaConfigRC.copilot = nvim.dag.entryAnywhere '' - require("copilot").setup({ - -- available options: https://github.com/zbirenbaum/copilot.lua - copilot_node_command = "${lib.getExe pkgs.nodejs-slim-16_x}", - }) - ''; - }; -} diff --git a/modules/assistant/default.nix b/modules/assistant/default.nix index 68128af..a8096c8 100644 --- a/modules/assistant/default.nix +++ b/modules/assistant/default.nix @@ -1,6 +1,6 @@ _: { imports = [ - ./copilot.nix + ./copilot # ./tabnine.nix # removed until I find a way around the initialisation script the plugin requires ]; } diff --git a/modules/assistant/tabnine.nix b/modules/assistant/tabnine.nix deleted file mode 100644 index bb8cecc..0000000 --- a/modules/assistant/tabnine.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - pkgs, - config, - lib, - ... -}: -with lib; -with builtins; let - cfg = config.vim.assistant.tabnine; -in { - options.vim.assistant.tabnine = { - enable = mkEnableOption "Enable TabNine assistant"; - }; - - config = mkIf cfg.enable { - vim.startPlugins = ["tabnine-nvim"]; - - vim.luaConfigRC.tabnine-nvim = nvim.dag.entryAnywhere '' - require('tabnine').setup({ - disable_auto_comment=true, - accept_keymap="", - dismiss_keymap = "", - debounce_ms = 800, - execlude_filetypes = {"TelescopePrompt", "NvimTree", "alpha"} - }) - ''; - }; -}