mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 11:05:08 +02:00
13 lines
277 B
Lua
13 lines
277 B
Lua
|
-- autoformat
|
||
|
if O.format_on_save then
|
||
|
require("lv-utils").define_augroups {
|
||
|
autoformat = {
|
||
|
{
|
||
|
"BufWritePre",
|
||
|
"*",
|
||
|
[[try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry]],
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
end
|