File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments