fix: add auto_close_autocmd
This commit is contained in:
@ -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]
|
||||
|
@ -61,7 +61,7 @@ return {
|
||||
auto_resize = true,
|
||||
padding = 10, -- padding for hover window width
|
||||
keymaps = {
|
||||
play = '_',
|
||||
-- play = '_', -- Deprecated
|
||||
pageup = '[[',
|
||||
pagedown = ']]',
|
||||
pin = '<leader>[',
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user