diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index b7c9a26..a042b79 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -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 lua vim.lsp.buf.formatting_sync(nil, 1000) augroup END ]])