Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lua/conform/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,8 @@ M.get_formatter_info = function(formatter, bufnr)
end

M.formatexpr = function(opts)
-- Change the defaults slightly from conform.format
-- Use the same defaults as conform.format(), but force async = false and handle the range
opts = vim.tbl_deep_extend("keep", opts or {}, {
timeout_ms = 500,
lsp_format = "fallback",
bufnr = vim.api.nvim_get_current_buf(),
})
-- Force async = false
Expand Down