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

44 lines
857 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +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 = {
2024-04-20 13:42:06 +00:00
find_files = {
theme = "ivy";
};
oldfiles = {
theme = "ivy";
};
buffers = {
theme = "dropdown";
};
2022-11-28 00:21:18 +00:00
};
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
}