From 6a97ba66fe9f7da4c2eccb001c3e325a8b9f060b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 22 Jan 2022 16:34:01 +0100 Subject: Remove sync --- lua/config/lsp/handlers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/config') 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") -- cgit v1.2.3-70-g09d2