Skip to content

Commit dc224f1

Browse files
committed
fix(status): update conform integration to use non-deprecated functions
1 parent 69ae06f commit dc224f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/astroui/status/provider.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,10 @@ function M.lsp_client_names(opts)
527527
end
528528
end
529529
if opts.integrations.conform and package.loaded["conform"] then -- conform integration
530-
local conform = require "conform"
531-
if not conform.will_fallback_lsp { bufnr = bufnr } then
532-
vim.list_extend(buf_client_names, vim.tbl_map(function(c) return c.name end, conform.list_formatters(bufnr)))
533-
end
530+
vim.list_extend(
531+
buf_client_names,
532+
vim.tbl_map(function(c) return c.name end, require("conform").list_formatters_to_run(bufnr))
533+
)
534534
end
535535
if opts.integrations["nvim-lint"] and package.loaded["lint"] then -- nvim-lint integration
536536
vim.list_extend(buf_client_names, require("lint")._resolve_linter_by_ft(vim.bo[bufnr].filetype))

0 commit comments

Comments
 (0)