From f887f63453ddae1bede7306de49f5d270ca51ce5 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 17 Jun 2024 11:05:47 -0400 Subject: [PATCH] fix(conform-nvim): replace deprecated `lsp_fallback` with new `lsp_format` option --- lua/astrocommunity/editing-support/conform-nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/editing-support/conform-nvim/init.lua b/lua/astrocommunity/editing-support/conform-nvim/init.lua index 3b38ce367..8ee84611c 100644 --- a/lua/astrocommunity/editing-support/conform-nvim/init.lua +++ b/lua/astrocommunity/editing-support/conform-nvim/init.lua @@ -22,7 +22,7 @@ return { ["end"] = { args.line2, end_line:len() }, } end - require("conform").format { async = true, lsp_fallback = true, range = range } + require("conform").format { async = true, lsp_format = "fallback", range = range } end, desc = "Format buffer", range = true, @@ -65,7 +65,7 @@ return { if vim.g.autoformat == nil then vim.g.autoformat = true end local autoformat = vim.b[bufnr].autoformat if autoformat == nil then autoformat = vim.g.autoformat end - if autoformat then return { timeout_ms = 500, lsp_fallback = true } end + if autoformat then return { timeout_ms = 500, lsp_format = "fallback" } end end, }, },