From looking at the implementation of complete_dictionary_matches I believe it differs in at least two ways from i_CTRL-X_CTRL-K:
From :help 'dictionary':
List of file names, separated by commas, that are used to lookup words
for keyword completion commands |i_CTRL-X_CTRL-K|. Each file should
contain a list of words. This can be one word per line, or several
words per line, separated by non-keyword characters (white space is
preferred).
So the problems I see are:
- It is currently assumed that there is only one file in
dictionary
- The regex anchors to
^ instead of non-keyword
That all said, I may be doing something wrong but I wasn't able to get a simple test working w/ localcomplete#dictMatches by setting my completefunc and dictionary.
From looking at the implementation of
complete_dictionary_matchesI believe it differs in at least two ways fromi_CTRL-X_CTRL-K:From
:help 'dictionary':So the problems I see are:
dictionary^instead ofnon-keywordThat all said, I may be doing something wrong but I wasn't able to get a simple test working w/
localcomplete#dictMatchesby setting mycompletefuncanddictionary.