Skip to content

Commit

Permalink
feat: blink displays text CompletionItemKind for results (#84)
Browse files Browse the repository at this point in the history
Closes #60
  • Loading branch information
mikavilpas authored Dec 31, 2024
1 parent 0940212 commit 51aa53a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink-ripgrep/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function RgSource:get_completions(context, resolve)
cwd,
RgSource.config.context_size
)
local kinds = require("blink.cmp.types").CompletionItemKind

---@type table<string, blink.cmp.CompletionItem>
local items = {}
Expand Down Expand Up @@ -239,6 +240,7 @@ function RgSource:get_completions(context, resolve)
end,
},
source_id = "blink-ripgrep",
kind = kinds.Text,
label = label,
insertText = matchkey,
}
Expand Down

0 comments on commit 51aa53a

Please sign in to comment.