refactor: move ripgrep extra package to telescope plugin definition

This commit is contained in:
Nicolas Goudry 2024-05-27 09:40:12 +02:00
parent 465916d5c1
commit ea9d077a81
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
2 changed files with 4 additions and 4 deletions

View file

@ -7,9 +7,6 @@ _:
]; ];
config = { config = {
# Needed for telescope live grep
extraPackages = [ pkgs.ripgrep ];
# Use <Space> as leader key # Use <Space> as leader key
globals.mapleader = " "; globals.mapleader = " ";

View file

@ -1,6 +1,6 @@
# homepage: https://github.com/nvim-telescope/telescope.nvim # homepage: https://github.com/nvim-telescope/telescope.nvim
# nixvim doc: https://nix-community.github.io/nixvim/plugins/telescope/index.html # nixvim doc: https://nix-community.github.io/nixvim/plugins/telescope/index.html
{ libn, ... }: { libn, pkgs, ... }:
{ {
opts = { opts = {
@ -8,6 +8,9 @@
}; };
rootOpts = { rootOpts = {
# Needed for live grep
extraPackages = [ pkgs.ripgrep ];
# Enable catppuccin colors # Enable catppuccin colors
# https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/telescope.lua # https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/telescope.lua
colorschemes.catppuccin.settings.integrations.telescope.enabled = true; colorschemes.catppuccin.settings.integrations.telescope.enabled = true;