mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
31 lines
714 B
Nix
31 lines
714 B
Nix
{lib, ...}:
|
|
with lib;
|
|
with builtins; {
|
|
options.vim.assistant.tabnine = {
|
|
enable = mkEnableOption "Enable TabNine assistant";
|
|
|
|
disable_auto_comment = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
description = "Disable auto comment";
|
|
};
|
|
|
|
mappings = {
|
|
accept = mkMappingOption "Accept [Tabnine]" "<Tab>";
|
|
dismiss = mkMappingOption "Dismiss [Tabnine]" "<C-]>";
|
|
};
|
|
|
|
debounce_ms = mkOption {
|
|
type = types.int;
|
|
default = 800;
|
|
description = "Debounce ms";
|
|
};
|
|
|
|
exclude_filetypes = mkOption {
|
|
type = types.listOf types.str;
|
|
default = ["TelescopePrompt" "NvimTree" "alpha"];
|
|
description = "Exclude filetypes";
|
|
};
|
|
};
|
|
}
|