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