Skip to content

Commit

Permalink
refactor: remove dead context.get_keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Jan 3, 2025
1 parent 3505267 commit 6df3f68
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lua/blink/cmp/completion/trigger/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
--- @field providers string[]
---
--- @field new fun(opts: blink.cmp.ContextOpts): blink.cmp.Context
--- @field get_keyword fun(): string
--- @field within_query_bounds fun(self: blink.cmp.Context, cursor: number[]): boolean
---
--- @field get_mode fun(): blink.cmp.Mode
Expand Down Expand Up @@ -65,12 +64,6 @@ function context.new(opts)
}, { __index = context })
end

function context.get_keyword()
local keyword = require('blink.cmp.config').completion.keyword
local range = context.get_bounds(keyword.range)
return string.sub(context.get_line(), range.start_col, range.start_col + range.length - 1)
end

--- @param cursor number[]
--- @return boolean
function context:within_query_bounds(cursor)
Expand Down

0 comments on commit 6df3f68

Please sign in to comment.