neovim-flake/modules/assistant/tabnine/tabnine.nix

31 lines
714 B
Nix
Raw Permalink Normal View History

2023-04-22 16:06:09 +02:00
{lib, ...}:
with lib;
2023-03-31 04:20:35 +02:00
with builtins; {
options.vim.assistant.tabnine = {
enable = mkEnableOption "Enable TabNine assistant";
disable_auto_comment = mkOption {
type = types.bool;
default = true;
description = "Disable auto comment";
};
2023-04-22 16:06:09 +02:00
mappings = {
accept = mkMappingOption "Accept [Tabnine]" "<Tab>";
dismiss = mkMappingOption "Dismiss [Tabnine]" "<C-]>";
};
debounce_ms = mkOption {
type = types.int;
default = 800;
description = "Debounce ms";
};
2023-04-22 16:06:09 +02:00
exclude_filetypes = mkOption {
type = types.listOf types.str;
default = ["TelescopePrompt" "NvimTree" "alpha"];
2023-04-22 16:06:09 +02:00
description = "Exclude filetypes";
};
};
}