refactor: use corountine for async process
This commit is contained in:
@ -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 = ' 单词翻译', })
|
||||
|
Reference in New Issue
Block a user