diff options
author | Steven Arcangeli <506791+stevearc@users.noreply.github.com> | 2024-07-19 08:46:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 08:46:46 -0700 |
commit | d60d41c34c9eacf8131685f28532e72f12f21482 (patch) | |
tree | 76a0820ccbae7c112ca4dab39882f135b4b0c64a /lua/conform/health.lua | |
parent | ae213f5169d5d0c6abbe76e1438d932772fc1657 (diff) | |
parent | 54ea60d1591486e7e56183addf1f45b03244386d (diff) |
Merge pull request #491 from stevearc/stevearc-config-refactor
feat!: large rework of configuration logic
Diffstat (limited to 'lua/conform/health.lua')
-rw-r--r-- | lua/conform/health.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lua/conform/health.lua b/lua/conform/health.lua index 3ee7567..07ffa22 100644 --- a/lua/conform/health.lua +++ b/lua/conform/health.lua @@ -6,7 +6,6 @@ local health_start = vim.health.start or vim.health.report_start local health_warn = vim.health.warn or vim.health.report_warn local health_info = vim.health.info or vim.health.report_info local health_ok = vim.health.ok or vim.health.report_ok -local islist = vim.islist or vim.tbl_islist ---@param name string ---@return string[] @@ -16,14 +15,6 @@ local function get_formatter_filetypes(name) for filetype, formatters in pairs(conform.formatters_by_ft) do if type(formatters) == "function" then formatters = formatters(0) - -- support the old structure where formatters could be a subkey - elseif not islist(formatters) then - vim.notify_once( - "Using deprecated structure for formatters_by_ft. See :help conform-options for details.", - vim.log.levels.ERROR - ) - ---@diagnostic disable-next-line: undefined-field - formatters = formatters.formatters end for _, ft_name in ipairs(formatters) do @@ -61,7 +52,7 @@ M.check = function() end end ----@param formatters conform.FormatterUnit[] +---@param formatters conform.FiletypeFormatterInternal ---@return string[] local function flatten_formatters(formatters) local flat = {} |