38 lines
816 B
Nix
Raw Normal View History

2022-11-27 19:11:41 -07:00
{ pkgs, dsl, ... }: {
2022-11-27 17:21:18 -07:00
2023-07-30 20:26:23 -04:00
# Telescope is a fuzzy finder that can work with different sub-plugins
2022-11-27 17:21:18 -07:00
plugins = [
pkgs.vimPlugins.telescope-nvim
pkgs.vimPlugins.project-nvim
2022-11-27 17:21:18 -07:00
pkgs.vimPlugins.telescope-fzy-native-nvim
pkgs.vimPlugins.telescope-file-browser-nvim
pkgs.vimPlugins.telescope-zoxide
];
setup.telescope = {
defaults = {
mappings = {
i = {
2022-11-27 19:11:41 -07:00
"['<esc>']" = dsl.rawLua "require('telescope.actions').close";
2022-11-27 17:21:18 -07:00
"['<C-h>']" = "which_key";
};
};
};
pickers = {
find_files = { theme = "ivy"; };
oldfiles = { theme = "ivy"; };
buffers = { theme = "dropdown"; };
};
extensions = {
fzy_native = { };
zoxide = { };
};
};
setup.project_nvim = { };
2022-11-28 22:36:30 -07:00
lua = builtins.readFile ./telescope.lua;
2022-11-27 17:21:18 -07:00
}