Closed tzws closed 2 years ago
I think lua table can work fine with empty strings, since you can use anything as a key.
The second issue can also be solved. Since this is the default dictionary update, you can set it for au FileType *
as well.
autocmd FileType * lua require("cmp_dictionary.caches").update()
Hi, thanks for the suggestion. Both are working. Only a little glitch:
But it doesn't affect normal use.
I can't reproduce. Is the problem caused by the above settings? In other words, is it a phenomenon that does not occur when you update to the latest version and disable the above settings, but occurs when you enable them?
Hi,
I saw the screenshot in Readme.md, it's seems it's designed behavior.
I know that the display is not working properly. I can't help you if I don't know if it's a bug in this plugin, a hacky setting that caused it, a problem with cmp itself, or a problem with your settings that I don't know about.
No reply, so I'll close it.
Thanks. I think the 3rd column 'belong to javascript.dict' is the "preview" of nvim-cmp. Since a dict entry is itself, nothing behind this dict entry, nothing need to preview, unless we can define something for it to preview, like wordnet or wordweb, organize the dict into a json format like:
{ "child": { "plural": "children" , "singular": "" , "antonym": "parent" , "synonym": "kid" , "meaning": "a son or daughter" } }
Is it possible to change loaded dictionary dynamically based
filetype
change?I've 2 workflows.
tabnnew
to create a scratch window/buffer to do some work, such as edit/format a message before sending, drop the buffer after paste the message to IM. In this case, the &filetype is an empty string. Is it possible to define some dict for &filetype is empty string in the config something like: