diff options
Diffstat (limited to 'lua/config/lsp/handlers.lua')
-rw-r--r-- | lua/config/lsp/handlers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/config/lsp/handlers.lua b/lua/config/lsp/handlers.lua index 6c49978..1745f95 100644 --- a/lua/config/lsp/handlers.lua +++ b/lua/config/lsp/handlers.lua @@ -101,7 +101,7 @@ function M.enable_format_on_save() vim.cmd([[ augroup format_on_save autocmd! - autocmd BufWritePre * lua vim.lsp.buf.formatting_sync() + autocmd BufWritePre * lua vim.lsp.buf.formatting() augroup end ]]) vim.notify("Enabled format on save") |