dotfiles/modules/common/neovim/config/telescope.nix

38 lines
816 B
Nix
Raw Permalink Normal View History

2022-11-28 02:11:41 +00:00
{ pkgs, dsl, ... }: {
2022-11-28 00:21:18 +00:00
2023-07-31 00:26:23 +00:00
# Telescope is a fuzzy finder that can work with different sub-plugins
2022-11-28 00:21:18 +00:00
plugins = [
pkgs.vimPlugins.telescope-nvim
pkgs.vimPlugins.project-nvim
2022-11-28 00:21:18 +00:00
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 = { };
};
};
setup.project_nvim = { };
2022-11-29 05:36:30 +00:00
lua = builtins.readFile ./telescope.lua;
2022-11-28 00:21:18 +00:00
}