chore: formated with stylua (#69)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2021-09-27 18:06:25 +06:00 committed by GitHub
parent 05d6a13369
commit 4353afd1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -36,7 +36,7 @@ function M.notice_message_startup()
end end
function M.show_notices() function M.show_notices()
vim.cmd('silent! keepalt split') vim.cmd 'silent! keepalt split'
local winid = vim.fn.win_getid() local winid = vim.fn.win_getid()
local bufnr = vim.api.nvim_create_buf(false, true) local bufnr = vim.api.nvim_create_buf(false, true)
@ -62,7 +62,7 @@ function M.show_notices()
notice = vim.list_extend(notice, vim.tbl_flatten(notices)) notice = vim.list_extend(notice, vim.tbl_flatten(notices))
vim.fn.appendbufline(bufnr, 0, notice) vim.fn.appendbufline(bufnr, 0, notice)
vim.fn.deletebufline(bufnr, #notice, vim.fn.line('$')) vim.fn.deletebufline(bufnr, #notice, vim.fn.line '$')
vim.api.nvim_win_set_cursor(winid, { 1, 0 }) vim.api.nvim_win_set_cursor(winid, { 1, 0 })
vim.bo[bufnr].modified = false vim.bo[bufnr].modified = false
vim.bo[bufnr].modifiable = false vim.bo[bufnr].modifiable = false