diff options
author | agoodshort <adrien.goodshort@gmail.com> | 2023-12-10 21:05:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 13:05:31 -0800 |
commit | fb9b0500270ba05b89cc27cd8b7762443bcfae22 (patch) | |
tree | f028ff3cee379a005166f4a507baf1a1c415c21e /lua/conform/health.lua | |
parent | 454275ee286fffe90841db6f3eac3b56e7a5a60e (diff) |
feat: ConformInfo shows path to executable (#244)
Diffstat (limited to 'lua/conform/health.lua')
-rw-r--r-- | lua/conform/health.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lua/conform/health.lua b/lua/conform/health.lua index bf7f51c..61cdc6f 100644 --- a/lua/conform/health.lua +++ b/lua/conform/health.lua @@ -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 |