Skip to content

Commit

Permalink
docs: shorten lines so they fit in mobile view better
Browse files Browse the repository at this point in the history
docs: clarify code comments

docs: format html in README
  • Loading branch information
mikavilpas committed Dec 17, 2024
1 parent 1310286 commit 28326d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# blink-ripgrep.nvim

<a href="https://dotfyle.com/plugins/mikavilpas/blink-ripgrep.nvim">
<img src="https://dotfyle.com/plugins/mikavilpas/blink-ripgrep.nvim/shield?style=flat-square" alt="shield image for plugin usage"/>
<img
src="https://dotfyle.com/plugins/mikavilpas/blink-ripgrep.nvim/shield?style=flat-square"
alt="shield image for plugin usage"
/>
</a>

Ripgrep source for the [blink.cmp](https://github.com/Saghen/blink.cmp)
completion plugin. Adding it to your configuration offers matching words from
your entire project as completions. This can reduce the chance of typos as well
Expand Down Expand Up @@ -42,7 +44,8 @@ return {
sources = {
completion = {
enabled_providers = {
-- NOTE: blink >v0.7.6 moved `sources.completion.enabled_providers` to `sources.default`
-- NOTE: blink >v0.7.6 has moved
-- `sources.completion.enabled_providers` to `sources.default`
"lsp",
"path",
"snippets",
Expand All @@ -66,9 +69,9 @@ return {
-- (if the word is shorter than this, the search will not start)
prefix_min_len = 3,

-- The number of lines to show around each match in the preview window.
-- For example, 5 means to show 5 lines before, then the match, and
-- another 5 lines after the match.
-- The number of lines to show around each match in the preview
-- (documentation) window. For example, 5 means to show 5 lines
-- before, then the match, and another 5 lines after the match.
context_size = 5,

-- The maximum file size that ripgrep should include in its search.
Expand All @@ -83,7 +86,7 @@ return {
-- If you have an idea for a default, please open an issue!
--
-- Not everything will work (obviously).
additional_rg_options = {}
additional_rg_options = {},
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions lua/blink-ripgrep/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

---@class blink-ripgrep.Options
---@field prefix_min_len? number # The minimum length of the current word to start searching (if the word is shorter than this, the search will not start)
---@field get_command? fun(context: blink.cmp.Context, prefix: string): string[] # Changing this might break things - if you need some customization, please open and issue 🙂
---@field get_command? fun(context: blink.cmp.Context, prefix: string): string[] # Changing this might break things - if you need some customization, please open an issue 🙂
---@field get_prefix? fun(context: blink.cmp.Context): string
---@field context_size? number # The number of lines to show around each match in the preview window. For example, 5 means to show 5 lines before, then the match, and another 5 lines after the match.
---@field context_size? number # The number of lines to show around each match in the preview (documentation) window. For example, 5 means to show 5 lines before, then the match, and another 5 lines after the match.
---@field max_filesize? string # The maximum file size that ripgrep should include in its search. Examples: "1024" (bytes by default), "200K", "1M", "1G"
---@field additional_rg_options? string[] # (advanced) Any options you want to give to ripgrep. See `rg -h` for a list of all available options.

Expand Down

0 comments on commit 28326d8

Please sign in to comment.