From 35cbf8deb8d37bb0a1cdcf3fcc9cc7aa480a29ee Mon Sep 17 00:00:00 2001 From: Greg Hurrell <7074+wincent@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:58:08 +0100 Subject: [PATCH] fix: correct copy-pasta in config.indent validation Looks like we're passing in `char` when trying to validate `tab_char`. --- lua/ibl/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ibl/config.lua b/lua/ibl/config.lua index 9cc5c75..fa5887c 100644 --- a/lua/ibl/config.lua +++ b/lua/ibl/config.lua @@ -130,7 +130,7 @@ local validate_config = function(config) if config.indent then utils.validate_config({ char = { config.indent.char, { "string", "table" }, true }, - tab_char = { config.indent.char, { "string", "table" }, true }, + tab_char = { config.indent.tab_char, { "string", "table" }, true }, highlight = { config.indent.highlight, { "string", "table" }, true }, smart_indent_cap = { config.indent.smart_indent_cap, "boolean", true }, priority = { config.indent.priority, "number", true },