Closed davidsierradz closed 2 years ago
The setup is there to put in default values for unspecified settings, so I think you can change the config directly after the setup.
@davidsierradz similar to https://github.com/uga-rosa/cmp-dictionary/issues/23
Specifically
require("cmp_dictionary.config").config.dic.markdown = "path/to/en.dict"
Since @davidsierradz seem to want to dynamically switch dictionaries for a single file type, perhaps #23 is not the solution.
require("cmp_dictionary.config").config.dic.markdown = "path/to/en.dict"
Thanks! I can confirm this works:
lua require("cmp_dictionary.config").config.dic.markdown = "/path/to/en.dict"; require("cmp_dictionary.caches").update();
Hi!
Is possible to change dictionaries on-demand?
I have
cmp-dictionary
configured with:I tried:
:lua require('cmp_dictionary').setup({dic={['markdown'] = '/path/to/en.dict'}})
And after:
:lua require("cmp_dictionary.caches").update()
After that, I try to see the current config:
I see the new dictionary in config (I notice that all my other settings get back to the defaults), but I'm still seeing only the words of the previous dict (not the new one).
Is this possible?
Thank you!