fix: use api.nvim_buf_get_lines instead of fn.getbufoneline

This commit is contained in:
JuanZoran
2023-03-16 21:15:00 +08:00
parent 4a0f9b5c85
commit b9abc99086
9 changed files with 118 additions and 32 deletions

View File

@ -179,6 +179,7 @@ function M:process(data)
self:fallback()
return
end
-- vim.pretty_print(result)
local opts = self.opts
if opts.auto_play then
(data.from == 'en' and data.str or result.definition[1]):play()