Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Lipin committed Aug 8, 2023
1 parent 09f8f64 commit b5797f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neogit/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit b5797f0

Please sign in to comment.