refactor: use corountine for async process

This commit is contained in:
JuanZoran
2023-03-08 23:26:38 +08:00
parent 947beb16c8
commit 69ac7653bf
3 changed files with 138 additions and 29 deletions

View File

@ -1,6 +1,5 @@
local api = vim.api
local M = require('Trans')
local new_command = api.nvim_create_user_command
new_command('Translate', function() M.translate() end, { desc = ' 单词翻译', })