voldikss / coc-extensions

🌸 Collections of coc.nvim extensions maintained by @voldikss
122 stars 6 forks source link

[coc.nvim]: Error on notification "doKeymap": this.engines is not iterable #96

Closed ztoiax closed 4 years ago

voldikss commented 4 years ago

Hi, could you also provider your corresponding configuration in coc-settings.json?

ztoiax commented 4 years ago

https://github.com/ztoiax/nvim/blob/master/coc-settings.json 用中文交流吧

最上川 notifications@github.com 于2020年8月16日周日 上午8:25写道:

Hi, could you also provider your corresponding configuration in coc-settings.json?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/voldikss/coc-translator/issues/96#issuecomment-674461601, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMWAHGRIWBMPOHMAHHR5C3SA4RONANCNFSM4P7PVT3Q .

voldikss commented 4 years ago

https://github.com/ztoiax/nvim/blob/master/coc-settings.json#L165-L197

将这些配置部分移除就可以了

voldikss commented 4 years ago

https://github.com/voldikss/coc-translator#configuration

这里给出的只是每项配置的具体格式说明,你要自定义的话不能按照这个写。 比如对于

"translator.engines": {
  "type": "array",
  "default": [
    "google",
    "youdao",
    "haici"
  ]
},

正确的写法是(举例)

"translator.engines":  [
    "google",
    "youdao",
    "haici"
  ]
ztoiax commented 4 years ago

谢谢

最上川 notifications@github.com 于2020年8月17日周一 下午5:38写道:

https://github.com/voldikss/coc-translator#configuration

这里给出的只是每项配置的具体格式说明,你要自定义的话不能按照这个写。 比如对于

"translator.engines": {

"type": "array",

"default": [

"google",

"youdao",

"haici"

] },

正确的写法是(举例)

"translator.engines": [

"google",

"youdao",

"haici"

]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/voldikss/coc-translator/issues/96#issuecomment-674774985, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMWAHHQT7VEFYDT4L2UJ3DSBD275ANCNFSM4P7PVT3Q .