dotfiles/home/modules/tui/neovim/plugins/telescope.nix

33 lines
727 B
Nix
Raw Normal View History

2024-12-05 03:11:13 +00:00
{
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";
};
};
};
}