chore: sync

This commit is contained in:
JuanZoran
2023-03-08 15:46:30 +08:00
parent 8f6b1d4069
commit 947beb16c8
3 changed files with 18 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
local api, fn = vim.api, vim.fn
---@class buf
---@field bufnr integer buffer handle
---@field size integer buffer line count
local buffer = {}
local api, fn = vim.api, vim.fn
---Clear all content in buffer
function buffer:wipe()
api.nvim_buf_set_lines(self.bufnr, 0, -1, false, {})