We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
conform
1 parent 8885154 commit 1ce41eeCopy full SHA for 1ce41ee
lua/astroui/status/provider.lua
@@ -539,10 +539,10 @@ function M.lsp_client_names(opts)
539
end
540
541
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
- )
+ local conform = require "conform"
+ if not conform.will_fallback_lsp { bufnr = bufnr } then
+ vim.list_extend(buf_client_names, conform.list_formatters_for_buffer(bufnr))
+ end
546
547
if opts.integrations["nvim-lint"] and package.loaded["lint"] then -- nvim-lint integration
548
vim.list_extend(buf_client_names, require("lint")._resolve_linter_by_ft(vim.bo[bufnr].filetype))
0 commit comments