From 750489d242c009acc4a0a4def7b44d83cd8f4d11 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 9 Jan 2023 15:29:31 +0000 Subject: [PATCH] Change formatting to async --- lua/config_plugins/config_lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/config_plugins/config_lsp.lua b/lua/config_plugins/config_lsp.lua index 8025bf64..cc59d1cb 100644 --- a/lua/config_plugins/config_lsp.lua +++ b/lua/config_plugins/config_lsp.lua @@ -40,7 +40,7 @@ local on_attach = function(client, bufnr) -- Keep support for deprecated syntax in vim <= 7 if vim.version().minor <= 7 then vim.keymap.set('n', 'i', function() - vim.lsp.buf.formatting_sync({ timeout_ms = 10000 }) + vim.lsp.buf.formatting() end, bufopts) else vim.keymap.set('n', 'i', function()