diff --git a/default.nix b/default.nix index 2438569..48b6ad7 100644 --- a/default.nix +++ b/default.nix @@ -7,9 +7,6 @@ _: ]; config = { - # Needed for telescope live grep - extraPackages = [ pkgs.ripgrep ]; - # Use as leader key globals.mapleader = " "; diff --git a/plugins/telescope.nix b/plugins/telescope.nix index 3e37b28..9dd2037 100644 --- a/plugins/telescope.nix +++ b/plugins/telescope.nix @@ -1,6 +1,6 @@ # homepage: https://github.com/nvim-telescope/telescope.nvim # nixvim doc: https://nix-community.github.io/nixvim/plugins/telescope/index.html -{ libn, ... }: +{ libn, pkgs, ... }: { opts = { @@ -8,6 +8,9 @@ }; rootOpts = { + # Needed for live grep + extraPackages = [ pkgs.ripgrep ]; + # Enable catppuccin colors # https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/telescope.lua colorschemes.catppuccin.settings.integrations.telescope.enabled = true;