dotfiles/modules/neovim/config/telescope.nix

35 lines
769 B
Nix
Raw Normal View History

2022-11-27 19:11:41 -07:00
{ pkgs, dsl, ... }: {
2022-11-27 17:21:18 -07:00
plugins = [
pkgs.vimPlugins.telescope-nvim
pkgs.vimPlugins.telescope-project-nvim
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 = { };
project = { base_dirs = [ "~/dev" ]; };
};
};
2022-11-28 22:36:30 -07:00
lua = builtins.readFile ./telescope.lua;
2022-11-27 17:21:18 -07:00
}