make it better by using la
This commit is contained in:
parent
e2c332c3ae
commit
20a1476c08
1 changed files with 5 additions and 4 deletions
|
@ -41,7 +41,8 @@ require("formatter").setup({
|
|||
},
|
||||
})
|
||||
|
||||
vim.api.nvim_command("augroup FormatAutogroup")
|
||||
vim.api.nvim_command("autocmd!")
|
||||
vim.api.nvim_command("autocmd BufWritePost * FormatWrite")
|
||||
vim.api.nvim_command("augroup END")
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
vim.api.nvim_command("FormatWrite")
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue