voldikss / coc-extensions

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

几个建议 #7

Closed chemzqm closed 5 years ago

chemzqm commented 5 years ago
  nvim.pauseNotification()
  for (let item of arr) {
    let text = item.content[0].padEnd(20) + item.content[1]
    nvim.call('append', [0, text], true)
  }
  nvim.command('syntax match CocTranslatorQuery /\\v^.*\\v%20v/', true)
  nvim.command('syntax match CocTranslatorOmit /\\v\\.\\.\\./', true)
  nvim.command('syntax match CocTranslatorResult /\\v%21v.*$/', true)
  nvim.command('highlight default link CocTranslatorQuery Keyword', true)
  nvim.command('highlight default link CocTranslatorResult String', true)
  await nvim.resumeNotification()
voldikss commented 5 years ago

好的,我当时不知道nvim.pauseNotification()nvim.resumeNotification()就没有抄,感谢大佬建议。