Format lua on save

This commit is contained in:
ViViDboarder 2022-03-01 12:29:30 -08:00
parent ddb7721048
commit dc2a528c06

View File

@ -117,7 +117,7 @@ local function get_default_attach(override_capabilities)
vim.cmd([[
augroup lsp_format
autocmd!
autocmd BufWritePre *.rs,*.go,*.sh lua vim.lsp.buf.formatting_sync(nil, 1000)
autocmd BufWritePre *.rs,*.go,*.sh,*.lua lua vim.lsp.buf.formatting_sync(nil, 1000)
" autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 1000)
augroup END
]])