dev: cleanup

This commit is contained in:
NotAShelf 2023-02-27 17:06:04 +03:00
parent a2e724a962
commit e265180cf1
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
3 changed files with 1 additions and 57 deletions

View file

@ -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}",
})
'';
};
}

View file

@ -1,6 +1,6 @@
_: { _: {
imports = [ imports = [
./copilot.nix ./copilot
# ./tabnine.nix # removed until I find a way around the initialisation script the plugin requires # ./tabnine.nix # removed until I find a way around the initialisation script the plugin requires
]; ];
} }

View file

@ -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="<Tab>",
dismiss_keymap = "<C-]>",
debounce_ms = 800,
execlude_filetypes = {"TelescopePrompt", "NvimTree", "alpha"}
})
'';
};
}