Skip to content

Commit 82ba3cd

Browse files
committed
fix: when table is undefined in user config, don't error
1 parent 9593c6f commit 82ba3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neogit/config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ function M.setup(opts)
12341234
end
12351235
end
12361236

1237-
if type(opts.sections.todo.keywords) == "table" then
1237+
if opts.sections.todo and type(opts.sections.todo.keywords) == "table" then
12381238
M.values.sections.todo.keywords = opts.sections.todo.keywords
12391239
end
12401240

0 commit comments

Comments
 (0)