diff options
Diffstat (limited to 'lua/config')
-rw-r--r-- | lua/config/autocommands.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/config/autocommands.lua b/lua/config/autocommands.lua index 213801a..a6038d2 100644 --- a/lua/config/autocommands.lua +++ b/lua/config/autocommands.lua @@ -26,4 +26,9 @@ vim.cmd([[ autocmd! autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2 augroup end + Autoformat + augroup _lsp + autocmd! + autocmd BufWritePre * lua vim.lsp.buf.formatting() + augroup end ]]) |