make it better by using la

This commit is contained in:
Sakooooo 2023-08-23 17:00:12 +00:00
parent e2c332c3ae
commit 20a1476c08
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -41,7 +41,8 @@ require("formatter").setup({
}, },
}) })
vim.api.nvim_command("augroup FormatAutogroup") vim.api.nvim_create_autocmd({ "BufWritePost" }, {
vim.api.nvim_command("autocmd!") callback = function()
vim.api.nvim_command("autocmd BufWritePost * FormatWrite") vim.api.nvim_command("FormatWrite")
vim.api.nvim_command("augroup END") end,
})