Skip to content

Commit 20efcd3

Browse files
committed
update
1 parent a9841f4 commit 20efcd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ vim.g.phoenix = {
4444
dict = {
4545
capacity = 50000, -- Store up to 50k words
4646
min_word_length = 2, -- Ignore single-letter words
47-
word_pattern = '[^%s%.%_:%p]+', -- Word pattern
47+
word_pattern = '[^%s%.%_:%p%d]+', -- Word pattern
4848
},
4949

5050
-- Completion control the scoring

lua/phoenix/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ vim.g.phoenix = {
1111
dict = {
1212
capacity = 50000, -- Store up to 50k words
1313
min_word_length = 2, -- Ignore single-letter words
14-
word_pattern = '[^%s%.%_:%p]+', -- Word pattern
14+
word_pattern = '[^%s%.%_:%p%d]+', -- Word pattern
1515
},
1616

1717
-- Completion control the scoring
@@ -471,7 +471,7 @@ local update_dict = async.throttle(function(lines)
471471
for i = processed + 1, end_idx do
472472
local line = lines[i]
473473
for word in line:gmatch(Config.dict.word_pattern) do
474-
if not seen[word] and not tonumber(word) and #word >= dict_Config.min_word_length then
474+
if not seen[word] and #word >= dict_Config.min_word_length then
475475
if Trie.insert(dict.trie, word, now) then
476476
new_words = new_words + 1
477477
seen[word] = true

0 commit comments

Comments
 (0)