feat(nvim): add blink-ripgrep
This commit is contained in:
parent
62095c0b89
commit
ccaddf0f6f
1 changed files with 16 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue