Skip to content

Commit 1ce41ee

Browse files
committed
fix(provider): only show conform clients if not fallingback to the LSP
1 parent 8885154 commit 1ce41ee

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
@@ -539,10 +539,10 @@ function M.lsp_client_names(opts)
539539
end
540540
end
541541
if opts.integrations.conform and package.loaded["conform"] then -- conform integration
542-
vim.list_extend(
543-
buf_client_names,
544-
vim.tbl_map(function(c) return c.name end, require("conform").list_formatters(bufnr))
545-
)
542+
local conform = require "conform"
543+
if not conform.will_fallback_lsp { bufnr = bufnr } then
544+
vim.list_extend(buf_client_names, conform.list_formatters_for_buffer(bufnr))
545+
end
546546
end
547547
if opts.integrations["nvim-lint"] and package.loaded["lint"] then -- nvim-lint integration
548548
vim.list_extend(buf_client_names, require("lint")._resolve_linter_by_ft(vim.bo[bufnr].filetype))

0 commit comments

Comments
 (0)