From b5797f026a35e174c62a8e60209ef424f55c915b Mon Sep 17 00:00:00 2001 From: Dmitrii Lipin Date: Tue, 8 Aug 2023 15:54:59 +0200 Subject: [PATCH] fix --- lua/neogit/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/neogit/config.lua b/lua/neogit/config.lua index 8f4996249..a5ce759ae 100644 --- a/lua/neogit/config.lua +++ b/lua/neogit/config.lua @@ -294,12 +294,12 @@ function M.validate_config() local function validate_kind(val, name) if validate_type(val, name, "string") - and not vim.tbl_contains({ "split", "vsplit", "tab", "floating", "auto" }, val) + and not vim.tbl_contains({ "split", "vsplit", "tab", "floating", "replace", "auto" }, val) then err( name, string.format( - "Expected `%s` to be one of 'split', 'vsplit', 'tab', 'floating', or 'auto', got '%s'", + "Expected `%s` to be one of 'split', 'vsplit', 'tab', 'floating', 'replace' or 'auto', got '%s'", name, val )