From 134180d9f127fafb94b850c34203cb17d8befeb3 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 22 May 2022 23:37:16 +0200 Subject: [PATCH] Use async formatter --- nvim/nvim/config/nvim.ln/lua/lsp/handlers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/nvim/config/nvim.ln/lua/lsp/handlers.lua b/nvim/nvim/config/nvim.ln/lua/lsp/handlers.lua index e58fcca..e1ab413 100644 --- a/nvim/nvim/config/nvim.ln/lua/lsp/handlers.lua +++ b/nvim/nvim/config/nvim.ln/lua/lsp/handlers.lua @@ -73,7 +73,7 @@ local lsp_keymaps = function(bufnr) r = { 'lua vim.lsp.buf.rename()', "Rename" }, a = { 'lua vim.lsp.buf.code_action()', "Code action" }, l = { 'lua vim.lsp.codelens.run()', "Run code lens" }, - f = { 'lua vim.lsp.buf.format({filter=_LSP_FORMAT_FILTER})', "Format" }, + f = { 'lua vim.lsp.buf.format({filter=_LSP_FORMAT_FILTER, async=true})', "Format" }, g = { 'Telescope lsp_document_symbols', "Go to symbol" }, } }, {