dotfiles/home/modules/tui/neovim/plugins/telescope.nix
2024-12-04 21:11:13 -06:00

33 lines
No EOL
727 B
Nix

{
programs.nixvim = {
plugins.telescope = {
enable = true;
keymaps = {
# find files using telescope command-line sugar
"<leader>ff" = "find_files";
"<leader>fg" = "live_grep";
"<leader>b" = "buffers";
"<leader>fh" = "help_tags";
"<leader>fd" = "diagnostics";
# fzf like bindings
"<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";
};
};
};
}