Commit Graph

17 Commits

Author SHA1 Message Date
Dmytro Meleshko
3143b0fb9f Add options for tweaking indexing speed and enabling synchronous mode 2021-12-20 01:33:55 +02:00
Dmytro Meleshko
e26cdfb26f Add a workaround for a weird nvim_buf_call bug, fix #34 2021-12-20 01:27:20 +02:00
Dmytro Meleshko
a706dc69c4 Fix #28 by avoiding on_lines events that report no changed lines 2021-11-22 22:54:42 +02:00
Dmytro Meleshko
e315969dc6 Add protections against nil values in lines_words, fixes #29 and #27
The underlying issue is that the code isn't (yet) suited to handle cases
when the async indexing is not finished, but the user is already editing
the file.
2021-11-22 22:42:14 +02:00
Dmytro Meleshko
8bc0b55bf7 Apply changes based on comments from the review 2021-11-15 21:24:03 +02:00
Dmytro Meleshko
10be0baf3c Add a distance-based comparator 2021-11-15 21:22:48 +02:00
Dmytro Meleshko
ee8e9af753 Use a table for passing options around 2021-11-15 20:45:29 +02:00
Dmytro Meleshko
2137cd03a8 Rebuild word tables incrementally when editing happens on a single line 2021-11-15 19:59:59 +02:00
Dmytro Meleshko
f1b5dc0ad0 Cache tables of unique words in every buffer 2021-11-15 09:30:03 +02:00
Dmytro Meleshko
e2c3b009b6 Correctly handle on_reload, on_detach, refactor indexing functions 2021-11-13 14:11:54 +02:00
Dmytro Meleshko
2d79337053 Fix O(n^2) complexity in watcher hidden within table.{insert,remove} 2021-11-08 09:43:46 +02:00
Dmytro Meleshko
d39fc20ac9 Optimize buffer:index_line 2021-11-03 00:03:34 +02:00
hrsh7th
d1ca295ce5 Add keyword_length option 2021-11-02 12:19:39 +09:00
Dmytro Meleshko
c11425c2d2 run keyword pattern regexes inside their respective buffers 2021-08-31 18:56:40 +03:00
hrsh7th
3f2041782f Request -> Params 2021-08-25 11:37:11 +09:00
hrsh7th
1864f3950e Fix digits pattern 2021-08-10 19:25:04 +09:00
hrsh7th
2dbb474a7e Initial commit 2021-08-08 17:38:47 +09:00