fix: add auto_close_autocmd

This commit is contained in:
JuanZoran
2023-03-15 16:07:07 +08:00
parent c699aaba24
commit 52238cb1e7
6 changed files with 92 additions and 28 deletions

View File

@ -7,7 +7,9 @@ local buffer = {}
---Clear all content in buffer
function buffer:wipe()
print('begin')
api.nvim_buf_set_lines(self.bufnr, 0, -1, false, {})
print('end')
end
---Delete buffer [_start, _end] line content [one index]

View File

@ -61,7 +61,7 @@ return {
auto_resize = true,
padding = 10, -- padding for hover window width
keymaps = {
play = '_',
-- play = '_', -- Deprecated
pageup = '[[',
pagedown = ']]',
pin = '<leader>[',

View File

@ -189,12 +189,10 @@ local default_opts = {
}
---@class TransWindow
---@field buffer TransBuffer attached buffer object
---@field win_opts table window config [**When open**]
---@field private winid integer window handle
---@field winid integer window handle
---@field ns integer namespace for highlight
---@field enter boolean cursor should [enter] window when open
---@field animation