Skip to content

Commit

Permalink
fixed typo resulting in wrong type check
Browse files Browse the repository at this point in the history
  • Loading branch information
ripjackie committed Apr 10, 2024
1 parent 3ef35bc commit fa7f9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nx/map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ return function(nx_map, wrapper_opts)

-- handle single keymap
if
(type(nx_map[1]) == "string" or type(nx_map[1] == "table"))
(type(nx_map[1]) == "string" or type(nx_map[1]) == "table")
and (type(nx_map[2]) == "string" or type(nx_map[2]) == "function")
then
if nx_map.ft or wrapper_opts.ft then
Expand Down

0 comments on commit fa7f9a4

Please sign in to comment.