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 {
|
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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue