Skip to content

Commit

Permalink
fix: bracket placement resulting in wrong type check (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ripjackie authored and ttytm committed Jun 16, 2024
1 parent bdb381f commit c4e121b
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 c4e121b

Please sign in to comment.