2023-01-05 16:24:50 +08:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
local buf_opts = {
|
|
|
|
filetype = 'Trans'
|
|
|
|
}
|
|
|
|
|
|
|
|
local buf = vim.api.nvim_create_buf(false, true)
|
|
|
|
for k, v in pairs(buf_opts) do
|
2023-01-05 21:15:01 +08:00
|
|
|
vim.api.nvim_buf_set_option(buf, k, v)
|
2023-01-05 16:24:50 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
M.buf = buf
|
|
|
|
|
|
|
|
M.group = vim.api.nvim_create_augroup('Trans', { clear = true })
|
|
|
|
|
|
|
|
|
|
|
|
return M
|