feat(nvim): add blink-ripgrep

This commit is contained in:
Moritz Böhme 2025-07-31 16:19:36 +02:00
parent 62095c0b89
commit ccaddf0f6f
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9

View file

@ -7,6 +7,7 @@
in { in {
home-manager.users.moritz.programs.nixvim = { home-manager.users.moritz.programs.nixvim = {
plugins.blink-compat.enable = true; plugins.blink-compat.enable = true;
plugins.blink-ripgrep.enable = true;
plugins.lsp.capabilities = plugins.lsp.capabilities =
/* /*
lua lua
@ -29,6 +30,7 @@ in {
"snippets" "snippets"
"buffer" "buffer"
"vimtex" "vimtex"
"ripgrep"
] ]
++ lib.optional lazydevEnabled "lazydev"; ++ lib.optional lazydevEnabled "lazydev";
providers = { providers = {
@ -36,6 +38,20 @@ in {
name = "vimtex"; name = "vimtex";
module = "blink.compat.source"; 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 { lazydev = lib.mkIf lazydevEnabled {
name = "LazyDev"; name = "LazyDev";
module = "lazydev.integrations.blink"; module = "lazydev.integrations.blink";