Skip to content

Commit cfde362

Browse files
committed
update
1 parent 3c82531 commit cfde362

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,43 @@ status is kept synchronized.
3030
require('phoenix').setup()
3131
```
3232

33-
all config in `vim.g.phoenix` option table see source file ...
33+
default config and custom in `vim.g.phoenix` option table.
34+
35+
```
36+
{
37+
filetypes = { '*' },
38+
-- Dictionary related settings
39+
dict = {
40+
-- Maximum number of words to store in the dictionary
41+
-- Higher values consume more memory but provide better completions
42+
max_words = 50000,
43+
44+
-- Minimum word length to be considered for completion
45+
-- Shorter words may create noise in completions
46+
min_word_length = 2,
47+
-- Time factor weight for sorting completions (0-1)
48+
-- Higher values favor recently used items more strongly
49+
recency_weight = 0.3,
50+
51+
-- Base weight for frequency in sorting (0-1)
52+
-- Complements recency_weight, should sum to 1
53+
frequency_weight = 0.7,
54+
},
55+
56+
-- Performance related settings
57+
scan = {
58+
cache_ttl = 5000,
59+
-- Number of items to process in each batch
60+
-- Higher values improve speed but may cause stuttering
61+
batch_size = 1000,
62+
-- Ignored the file or dictionary which matched the pattern
63+
ignore_patterns = {},
64+
65+
-- Throttle delay for dictionary updates in milliseconds
66+
-- Prevents excessive CPU usage during rapid file changes
67+
throttle_ms = 100,
68+
},
69+
}
70+
```
3471

3572
## License MIT

0 commit comments

Comments
 (0)