Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Jan 18, 2025
1 parent 82e2ce1 commit cf176b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/internal/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ end
local function collect_buffer_words(root_name, filename, triggerchar)
local words = {}
for _, word in ipairs(vim.tbl_get(words_cache, root_name, filename) or {}) do
if word:match('^' .. triggerchar) and not vim.list_contains(words, word) then
-- only compare for alpha
if word:sub(1, 1) == triggerchar and not vim.list_contains(words, word) then
table.insert(words, word)
end
end
Expand Down

0 comments on commit cf176b5

Please sign in to comment.