Skip to content

Commit

Permalink
fix(provider): only show conform clients if not fallingback to the LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed May 23, 2024
1 parent 8885154 commit 1ce41ee
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 @@ -539,10 +539,10 @@ function M.lsp_client_names(opts)
end
end
if opts.integrations.conform and package.loaded["conform"] then -- conform integration
vim.list_extend(
buf_client_names,
vim.tbl_map(function(c) return c.name end, require("conform").list_formatters(bufnr))
)
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
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 1ce41ee

Please sign in to comment.