diff --git a/modules/moritz/programs/nvim/plugins/blink-cmp.nix b/modules/moritz/programs/nvim/plugins/blink-cmp.nix index 1dbc300..e7c2f55 100644 --- a/modules/moritz/programs/nvim/plugins/blink-cmp.nix +++ b/modules/moritz/programs/nvim/plugins/blink-cmp.nix @@ -7,6 +7,7 @@ in { home-manager.users.moritz.programs.nixvim = { plugins.blink-compat.enable = true; + plugins.blink-ripgrep.enable = true; plugins.lsp.capabilities = /* lua @@ -29,6 +30,7 @@ in { "snippets" "buffer" "vimtex" + "ripgrep" ] ++ lib.optional lazydevEnabled "lazydev"; providers = { @@ -36,6 +38,20 @@ in { name = "vimtex"; module = "blink.compat.source"; }; + ripgrep = { + module = "blink-ripgrep"; + name = "Ripgrep"; + transform_items.__raw = '' + function(_, items) + for _, item in ipairs(items) do + -- example: append a description to easily distinguish rg results + item.labelDetails = { + description = "(rg)", + } + end + return items + end''; + }; lazydev = lib.mkIf lazydevEnabled { name = "LazyDev"; module = "lazydev.integrations.blink";