{ lib, config, ... }: lib.mkIf (lib.elem "nvim::telescope" config.machine.pkgs) { programs.nvim-lazy.lazyPlugins = [ { lazy = true; dir = vPlug: vPlug.telescope-nvim; dependencies = ( vPlug: with vPlug; [ plenary-nvim "ghassan0/telescope-glyph.nvim" "xiyaowong/telescope-emoji.nvim" ] ); keys = [ { bind = "ff"; cmd = "Telescope find_files"; opts = { desc = "Telescope Find Files"; }; } { bind = "fg"; cmd = "Telescope git_files"; opts = { desc = "Telescope Git Files"; }; } { bind = "fw"; cmd = "Telescope grep_string"; opts = { desc = "Telescope Grep Cursor Word"; }; } { bind = "fr"; cmd = "Telescope live_grep"; opts = { desc = "Telescope Grep Files"; }; } { bind = "fc"; cmd = "Telescope glyph"; opts = { desc = "Telescope find glyphs"; }; } { bind = "fe"; cmd = "Telescope emoji"; opts = { desc = "Telescope find emoju"; }; } ]; } { lazy = true; short = "ghassan0/telescope-glyph.nvim"; } { lazy = true; short = "xiyaowong/telescope-emoji.nvim"; } { short = "nvim-lua/plenary.nvim"; # 2d9b06177a975543726ce5c73fca176cedbffe9d # dir = vPlug: vPlug.plenary-nvim; lazy = true; } ]; }