Skip to content

Commit d466f21

Browse files
committed
fix(condition): check if nvim-lint has clients attached
1 parent 299c0e0 commit d466f21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/astroui/status/condition.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ package.loaded["astrolsp"]
172172
-- TODO: remove get_active_clients when dropping support for Neovim 0.9
173173
---@diagnostic disable-next-line: deprecated
174174
and next((vim.lsp.get_clients or vim.lsp.get_active_clients) { bufnr = bufnr or 0 }) ~= nil
175-
) or (package.loaded["conform"] and next(require("conform").list_formatters(bufnr)) ~= nil)
175+
)
176+
or (package.loaded["conform"] and next(require("conform").list_formatters(bufnr)) ~= nil)
177+
or (package.loaded["lint"] and next(require("lint")._resolve_linter_by_ft(vim.bo[bufnr].filetype or "")) ~= nil)
176178
end
177179

178180
--- A condition function if a treesitter parser for a given buffer is available

0 commit comments

Comments
 (0)