diff --git a/lua/astrocommunity/editing-support/conform-nvim/init.lua b/lua/astrocommunity/editing-support/conform-nvim/init.lua index d4c77f658..40f5f0562 100644 --- a/lua/astrocommunity/editing-support/conform-nvim/init.lua +++ b/lua/astrocommunity/editing-support/conform-nvim/init.lua @@ -23,7 +23,7 @@ return { ["end"] = { args.line2, end_line:len() }, } end - require("conform").format { async = true, lsp_format = "fallback", range = range } + require("conform").format { async = true, range = range } end, desc = "Format buffer", range = true, @@ -62,11 +62,12 @@ return { }, }, opts = { + default_format_opts = { lsp = "fallback" }, format_on_save = function(bufnr) 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_format = "fallback" } end + if autoformat then return { timeout_ms = 500 } end end, }, }