Skip to content

Commit

Permalink
Merge pull request #30 from lukas-reineke/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke authored Jan 13, 2022
2 parents 7a95aa7 + 72230d5 commit fd92d70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions doc/cmp-rg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


Author: Lukas Reineke <[email protected]>
Version: 1.3.5
Version: 1.3.6

==============================================================================
CONTENTS *cmp-rg*
Expand All @@ -20,7 +20,7 @@ pattern *cmp-rg-pattern*

The pattern to search for matches with ripgrep.

Default: "[a-zA-Z_-]+" ~
Default: "[\w_-]+" ~

------------------------------------------------------------------------------
additional_arguments *cmp-rg-additional_arguments*
Expand Down Expand Up @@ -114,6 +114,9 @@ debug *cmp-rg-debug*
==============================================================================
3. CHANGELOG *cmp-rg-changelog*

1.3.6
* Change default pattern to fix `--smart-case`

1.3.5
* Update documentation

Expand Down
2 changes: 1 addition & 1 deletion lua/cmp-rg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end

source.complete = function(self, request, callback)
local q = string.sub(request.context.cursor_before_line, request.offset)
local pattern = request.option.pattern or "[a-zA-Z_-]+"
local pattern = request.option.pattern or "[\\w_-]+"
local additional_arguments = request.option.additional_arguments or ""
local context_before = request.option.context_before or 1
local context_after = request.option.context_after or 3
Expand Down

0 comments on commit fd92d70

Please sign in to comment.