-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5406e5
commit 859a97b
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ lib, ... }: | ||
lib.nixvim.plugins.mkNeovimPlugin { | ||
name = "blink-ripgrep"; | ||
package = "blink-ripgrep-nvim"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
maintainers = [ lib.maintainers.khaneliman ]; | ||
|
||
description = '' | ||
This plugin should be configured through blink-cmp's `sources.providers` settings. | ||
For example: | ||
```nix | ||
plugins.blink-cmp = { | ||
enable = true; | ||
settings.sources.providers = { | ||
ripgrep = { | ||
async = true; | ||
module = "blink-ripgrep"; | ||
name = "Ripgrep"; | ||
score_offset = 100; | ||
opts = { | ||
prefix_min_len = 3; | ||
context_size = 5; | ||
max_filesize = "1M"; | ||
project_root_marker = ".git"; | ||
project_root_fallback = true; | ||
search_casing = "--ignore-case"; | ||
additional_rg_options = {}; | ||
fallback_to_regex_highlighting = true; | ||
ignore_paths = {}; | ||
additional_paths = {}; | ||
debug = false; | ||
}; | ||
}; | ||
}; | ||
}; | ||
``` | ||
And then you can add it to blink-cmp's `sources.default` option: | ||
```nix | ||
plugins.blink-cmp = { | ||
enable = true; | ||
settings.sources.default = [ | ||
"lsp" | ||
"path" | ||
"luasnip" | ||
"buffer" | ||
"ripgrep" | ||
]; | ||
}; | ||
``` | ||
''; | ||
|
||
# Configured through blink-cmp | ||
callSetup = false; | ||
hasLuaConfig = false; | ||
hasSettings = false; | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/test-sources/plugins/by-name/blink-ripgrep/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
empty = { | ||
plugins.blink-ripgrep.enable = true; | ||
}; | ||
|
||
defaults = { | ||
plugins.blink-ripgrep = { | ||
enable = true; | ||
}; | ||
}; | ||
} |
I think
packPathName
needs to be set as it's "blink-ripgrep.nvim" not just "blink-ripgrep".