File tree Expand file tree Collapse file tree 2 files changed +31
-47
lines changed
plugins/by-name/blink-ripgrep
tests/test-sources/plugins/by-name/blink-ripgrep Expand file tree Collapse file tree 2 files changed +31
-47
lines changed Original file line number Diff line number Diff line change 1
1
{ lib , ... } :
2
- lib . nixvim . plugins . mkNeovimPlugin {
2
+ let
3
3
name = "blink-ripgrep" ;
4
+ in
5
+ lib . nixvim . plugins . mkNeovimPlugin {
6
+ inherit name ;
4
7
packPathName = "blink-ripgrep.nvim" ;
5
8
package = "blink-ripgrep-nvim" ;
6
9
7
10
maintainers = [ lib . maintainers . khaneliman ] ;
8
11
9
- description = ''
10
- This plugin should be configured through blink-cmp's `sources.providers` settings.
11
-
12
- For example:
13
-
14
- ```nix
15
- plugins.blink-cmp = {
16
- enable = true;
17
- settings.sources.providers = {
18
- ripgrep = {
19
- async = true;
20
- module = "blink-ripgrep";
21
- name = "Ripgrep";
22
- score_offset = 100;
23
- opts = {
24
- prefix_min_len = 3;
25
- context_size = 5;
26
- max_filesize = "1M";
27
- project_root_marker = ".git";
28
- project_root_fallback = true;
29
- search_casing = "--ignore-case";
30
- additional_rg_options = {};
31
- fallback_to_regex_highlighting = true;
32
- ignore_paths = {};
33
- additional_paths = {};
34
- debug = false;
35
- };
36
- };
12
+ imports = [
13
+ ( lib . nixvim . modules . mkBlinkPluginModule {
14
+ pluginName = name ;
15
+ # TODO: compute a sane-default
16
+ key = "ripgrep" ;
17
+ sourceName = "Ripgrep" ;
18
+ module = "blink-ripgrep" ;
19
+ settingsExample = {
20
+ async = true ;
21
+ score_offset = 100 ;
37
22
} ;
38
- };
39
- ```
40
-
41
- And then you can add it to blink-cmp's `sources.default` option:
23
+ } )
24
+ ] ;
42
25
43
- ```nix
44
- plugins.blink-cmp = {
45
- enable = true ;
46
- settings.sources.default = [
47
- "lsp"
48
- "path"
49
- "luasnip"
50
- "buffer"
51
- "ripgrep"
52
- ] ;
53
- };
54
- ```
55
- '' ;
26
+ settingsExample = {
27
+ prefix_min_len = 3 ;
28
+ context_size = 5 ;
29
+ max_filesize = "1M" ;
30
+ project_root_marker = ".git" ;
31
+ project_root_fallback = true ;
32
+ search_casing = "--ignore-case" ;
33
+ additional_rg_options = { } ;
34
+ fallback_to_regex_highlighting = true ;
35
+ ignore_paths = { } ;
36
+ additional_paths = { } ;
37
+ debug = false ;
38
+ } ;
56
39
57
40
# Configured through blink-cmp
58
41
callSetup = false ;
59
42
hasLuaConfig = false ;
60
- hasSettings = false ;
61
43
}
Original file line number Diff line number Diff line change 1
1
{
2
2
empty = {
3
+ plugins . blink-cmp . enable = true ;
3
4
plugins . blink-ripgrep . enable = true ;
4
5
} ;
5
6
6
7
defaults = {
8
+ plugins . blink-cmp . enable = true ;
7
9
plugins . blink-ripgrep = {
8
10
enable = true ;
9
11
} ;
You can’t perform that action at this time.
0 commit comments