Skip to content

Commit

Permalink
fix(status): update conform integration to use non-deprecated funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
mehalter committed Jul 19, 2024
1 parent 69ae06f commit dc224f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/astroui/status/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,10 @@ function M.lsp_client_names(opts)
end
end
if opts.integrations.conform and package.loaded["conform"] then -- conform integration
local conform = require "conform"
if not conform.will_fallback_lsp { bufnr = bufnr } then
vim.list_extend(buf_client_names, vim.tbl_map(function(c) return c.name end, conform.list_formatters(bufnr)))
end
vim.list_extend(
buf_client_names,
vim.tbl_map(function(c) return c.name end, require("conform").list_formatters_to_run(bufnr))
)
end
if opts.integrations["nvim-lint"] and package.loaded["lint"] then -- nvim-lint integration
vim.list_extend(buf_client_names, require("lint")._resolve_linter_by_ft(vim.bo[bufnr].filetype))
Expand Down

0 comments on commit dc224f1

Please sign in to comment.