From ea9d077a81305f290fce61d0ae845788c93ad9b2 Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Mon, 27 May 2024 09:40:12 +0200 Subject: [PATCH] refactor: move ripgrep extra package to telescope plugin definition --- default.nix | 3 --- plugins/telescope.nix | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) 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;