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