Closed chemzqm closed 5 years ago
tslint -c tslint.json -p .
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()
好的,我当时不知道nvim.pauseNotification() 和 nvim.resumeNotification()就没有抄,感谢大佬建议。
nvim.pauseNotification()
nvim.resumeNotification()
tslint -c tslint.json -p .
可以看到许多警告,或者把 tslint 这些去掉。可以安装 https://github.com/neoclide/coc-tslint-plugin 实时检测。