Skip to content

Commit

Permalink
feat: ConformInfo shows path to executable (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
agoodshort committed Dec 10, 2023
1 parent 454275e commit fb9b050
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lua/conform/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,20 @@ M.show_window = function()
)
else
local filetypes = get_formatter_filetypes(formatter.name)
local line = string.format("%s ready (%s)", formatter.name, table.concat(filetypes, ", "))
local filetypes_list = table.concat(filetypes, ", ")
local path = vim.fn.exepath(formatter.command)
local line = string.format("%s ready (%s) %s", formatter.name, filetypes_list, path)
table.insert(lines, line)
table.insert(
highlights,
{ "DiagnosticInfo", #lines, formatter.name:len(), formatter.name:len() + 6 }
)
table.insert(highlights, {
"DiagnosticInfo",
#lines,
formatter.name:len() + 7 + filetypes_list:len() + 3,
line:len(),
})
end
end

Expand Down

0 comments on commit fb9b050

Please sign in to comment.