From 6df3f68513772375e2a60aee57f943b2cdcfb5d8 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Fri, 3 Jan 2025 15:47:49 -0500 Subject: [PATCH] refactor: remove dead `context.get_keyword` --- lua/blink/cmp/completion/trigger/context.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/blink/cmp/completion/trigger/context.lua b/lua/blink/cmp/completion/trigger/context.lua index a6b36ca0..26afe5be 100644 --- a/lua/blink/cmp/completion/trigger/context.lua +++ b/lua/blink/cmp/completion/trigger/context.lua @@ -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 @@ -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)