summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-22 16:34:01 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-22 16:34:01 +0100
commit6a97ba66fe9f7da4c2eccb001c3e325a8b9f060b (patch)
tree4522ab1cf3b2e01dd824dc36bfd3db34ac28865f /lua/config
parent2228cb01baa017df59a5c2d6b5af305b2c808e49 (diff)
Remove sync
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/lsp/handlers.lua2
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")