neoclide / coc-sources

Additional common sources of coc.nvim
208 stars 12 forks source link

coc-dictionary does not use by default the vim dictionary (spell option) #30

Closed grimgort closed 4 years ago

grimgort commented 4 years ago

hello, when typing 'h dictionary' it is marked that this variable is set if 'set spell' is used. Would it be possible to use the default vim dictionary, set with the 'set spell' vim option ?

vim doc : When this option is empty or an entry "spell" is present, and spell checking is enabled, words in the word lists for the currently active 'spelllang' are used. See |spell|

thanks a lot

chemzqm commented 4 years ago

Checkout :echo &dictionary which is used by coc-dictionary

nomasprime commented 4 years ago

:echo &dictionary doesn't have any output. Not sure what coc-dictionary is supposed to do?

I'm trying to add the default dictionary completions too.

nomasprime commented 4 years ago

OK, looks like dictionary isn't set by default, that's why nothing happens.

I had to set manually with set dictionary=/usr/share/dict/words.