2023-04-22 16:06:09 +02:00
|
|
|
{lib, ...}:
|
2023-02-27 15:05:53 +01:00
|
|
|
with lib;
|
2023-03-31 04:20:35 +02:00
|
|
|
with builtins; {
|
2023-02-27 15:05:53 +01:00
|
|
|
options.vim.assistant.tabnine = {
|
2023-06-05 22:10:25 +02:00
|
|
|
enable = mkEnableOption "Tabnine assistant";
|
2023-02-27 15:05:53 +01:00
|
|
|
|
|
|
|
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-]>";
|
2023-02-27 15:05:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
debounce_ms = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 800;
|
|
|
|
description = "Debounce ms";
|
|
|
|
};
|
|
|
|
|
2023-04-22 16:06:09 +02:00
|
|
|
exclude_filetypes = mkOption {
|
2023-02-27 15:05:53 +01:00
|
|
|
type = types.listOf types.str;
|
|
|
|
default = ["TelescopePrompt" "NvimTree" "alpha"];
|
2023-04-22 16:06:09 +02:00
|
|
|
description = "Exclude filetypes";
|
2023-02-27 15:05:53 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|