From d6fe138e5f32981723a9e9e854c3e1ce6276ea55 Mon Sep 17 00:00:00 2001 From: Rekord <1324596506@qq.com> Date: Wed, 21 Aug 2024 08:35:49 +0000 Subject: [PATCH] fix: correct lsp_format opt --- .config/nvim/lua/josean/plugins/formatting.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/josean/plugins/formatting.lua b/.config/nvim/lua/josean/plugins/formatting.lua index 074c931..c9f00b7 100644 --- a/.config/nvim/lua/josean/plugins/formatting.lua +++ b/.config/nvim/lua/josean/plugins/formatting.lua @@ -22,7 +22,7 @@ return { python = { "isort", "black" }, }, format_on_save = { - lsp_fallback = true, + lsp_format = "callback", async = false, timeout_ms = 1000, }, @@ -30,7 +30,7 @@ return { vim.keymap.set({ "n", "v" }, "mp", function() conform.format({ - lsp_fallback = true, + lsp_format = "callback", async = false, timeout_ms = 1000, })