dotfiles/modules/neovim/config/telescope.nix

35 lines
769 B
Nix
Raw Normal View History

2022-11-28 02:11:41 +00:00
{ pkgs, dsl, ... }: {
2022-11-28 00:21:18 +00: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-28 02:11:41 +00:00
"['<esc>']" = dsl.rawLua "require('telescope.actions').close";
2022-11-28 00:21:18 +00: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-29 05:36:30 +00:00
lua = builtins.readFile ./telescope.lua;
2022-11-28 00:21:18 +00:00
}