chore: sync

This commit is contained in:
JuanZoran
2023-03-16 22:59:42 +08:00
parent b9abc99086
commit 75fdfc6880
5 changed files with 105 additions and 95 deletions

View File

@ -159,7 +159,7 @@ buffer.__index = function(self, key)
if res then
return res
elseif type(key) == 'number' then
-- return fn.getbufoneline(self.bufnr, key) -- Vimscript Function Or Lua API ??
-- return fn.getbufoneline(self.bufnr, key) -- Vimscript Function Or Lua API ?? -- INFO :v0.8.1 doesn't support getbufoneline
return api.nvim_buf_get_lines(self.bufnr, key - 1, key, true)[1]
else
error('invalid key: ' .. key)

View File

@ -54,6 +54,7 @@ return {
---@type string -- TODO :support replace with {{special word}}
fallback_message = '{{notfound}} 翻译超时或没有找到相关的翻译',
auto_resize = true,
-- strict = false, -- TODO :No Width limit when str is a sentence
padding = 10, -- padding for hover window width
keymaps = {
pageup = '[[',