Add telescope to nixvim

This commit is contained in:
2025-07-08 18:34:30 +02:00
parent 1815d98848
commit 0b14042708
2 changed files with 43 additions and 0 deletions
@@ -5,6 +5,7 @@
./lsp.nix
./fmt.nix
./treesitter.nix
./telescope.nix
./lualine.nix
./nvim-autopairs.nix
./which-key.nix
@@ -14,6 +15,7 @@
plugins = {
lz-n.enable = true;
indent-blankline.enable = true;
web-devicons.enable = true;
};
extraPlugins = with pkgs.vimPlugins; [
@@ -0,0 +1,41 @@
{
programs.nixvim.plugins.telescope = {
enable = true;
extensions.fzf-native.enable = true;
keymaps = {
"<leader>sh" = {
action = "help_tags";
options.desc = "Search Help";
};
"<leader>sf" = {
action = "find_files";
options.desc = "Search Files";
};
"<leader>ss" = {
action = "builtin";
options.desc = "Search Select Telescope";
};
"<leader>sg" = {
action = "live_grep";
options.desc = "Search by Grep";
};
"<leader><leader>" = {
action = "buffers";
options.desc = "Find existing buffers";
};
"<leader>/" = {
action = "current_buffer_fuzzy_find";
options.desc = "Find in current buffer";
};
};
settings.defaults.file_ignore_patterns = [
"^.git/"
"^.mypy_cache/"
"^__pycache__/"
"^output/"
"^data/"
"^node_modules/"
"%.ipynb"
];
};
}