mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 13:50:44 +00:00
45 lines
892 B
Nix
45 lines
892 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.assistant.tabnine;
|
|
in {
|
|
options.vim.assistant.tabnine = {
|
|
enable = mkEnableOption "Enable TabNine assistant";
|
|
|
|
disable_auto_comment = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
description = "Disable auto comment";
|
|
};
|
|
|
|
accept_keymap = mkOption {
|
|
type = types.str;
|
|
default = "<Tab>";
|
|
description = "Accept keymap";
|
|
};
|
|
|
|
dismiss_keymap = mkOption {
|
|
type = types.str;
|
|
default = "<C-]>";
|
|
description = "Dismiss keymap";
|
|
};
|
|
|
|
debounce_ms = mkOption {
|
|
type = types.int;
|
|
default = 800;
|
|
description = "Debounce ms";
|
|
};
|
|
|
|
execlude_filetypes = mkOption {
|
|
type = types.listOf types.str;
|
|
default = ["TelescopePrompt" "NvimTree" "alpha"];
|
|
description = "Execlude filetypes";
|
|
};
|
|
};
|
|
}
|