Skip to content

Commit

Permalink
fix(conform-nvim): replace deprecated lsp_fallback with new `lsp_fo…
Browse files Browse the repository at this point in the history
…rmat` option
  • Loading branch information
mehalter committed Jun 17, 2024
1 parent c95fc1b commit f887f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/astrocommunity/editing-support/conform-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
},
},
Expand Down

0 comments on commit f887f63

Please sign in to comment.