diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2024-04-23 07:20:29 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2024-04-23 07:20:54 -0700 |
commit | 7a205c944d228ca0a5ec67656f59d20ba11ccca2 (patch) | |
tree | ef712db0a785ba423a2f6ae4eee86045668fb8c7 /lua/conform/health.lua | |
parent | a6965ac128eba75537ec2bc5ddd5d5e357062bdc (diff) |
fix: refactor deprecated methods in neovim 0.10
Diffstat (limited to 'lua/conform/health.lua')
-rw-r--r-- | lua/conform/health.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/conform/health.lua b/lua/conform/health.lua index c02fd00..13e90d5 100644 --- a/lua/conform/health.lua +++ b/lua/conform/health.lua @@ -5,6 +5,7 @@ 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[] @@ -15,7 +16,7 @@ local function get_formatter_filetypes(name) if type(formatters) == "function" then formatters = formatters(0) -- support the old structure where formatters could be a subkey - elseif not vim.tbl_islist(formatters) then + 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 |