43 lines
934 B
Nix
43 lines
934 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.userModules.devtools.nixvim.plugins.telescope;
|
|
in {
|
|
options = {
|
|
userModules.devtools.nixvim.plugins.telescope.enable = mkEnableOption "Enables Telescope plugin for nixvim";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim.plugins.telescope = {
|
|
enable = true;
|
|
|
|
keymaps = {
|
|
"<leader>ff" = "find_files";
|
|
"<leader>fg" = "live_grep";
|
|
"<leader>b" = "buffers";
|
|
"<leader>fh" = "help_tags";
|
|
"<leader>fd" = "diagnostics";
|
|
|
|
"<C-p>" = "git_files";
|
|
"<leader>p" = "oldfiles";
|
|
"<C-f>" = "live_grep";
|
|
};
|
|
|
|
settings.defaults = {
|
|
file_ignore_patterns = [
|
|
"^.git/"
|
|
"^.mypy_cache/"
|
|
"^__pycache__/"
|
|
"^output/"
|
|
"^data/"
|
|
"%.ipynb"
|
|
];
|
|
set_env.COLORTERM = "truecolor";
|
|
};
|
|
};
|
|
};
|
|
}
|