Skip to content

Commit

Permalink
fix(types): update types for get_command and get_prefix (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas authored Nov 3, 2024
1 parent df013b4 commit b27eb5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/blink-cmp-rg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

---@class blink-cmp-rg.Options
---@field prefix_min_len? number
---@field get_command? fun(self: blink.cmp.Source, prefix: string): string[]
---@field get_prefix? fun(self: blink.cmp.Source): string
---@field get_command? fun(self: blink.cmp.Context, prefix: string): string[]
---@field get_prefix? fun(self: blink.cmp.Context): string

---@class blink-cmp-rg.RgSource : blink.cmp.Source
---@field prefix_min_len number
---@field get_command fun(self: blink.cmp.Context, prefix: string): string[]
---@field get_prefix fun(self: blink.cmp.Context): string
local RgSource = {}

---@param opts blink-cmp-rg.Options
Expand Down

0 comments on commit b27eb5d

Please sign in to comment.