Skip to content

Commit

Permalink
fix: validation options
Browse files Browse the repository at this point in the history
  • Loading branch information
sontungexpt committed Sep 17, 2023
1 parent a81ddba commit ed61f7c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lua/url-open/modules/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ M.validate_opts = function(opts)

if opts.highlight_url.all_urls then
validate {
enabled = { opts.highlight_url.enabled, "boolean", true },
fg = { opts.highlight_url.fg, "string", true },
bg = { opts.highlight_url.bg, "string", true },
underline = { opts.highlight_url.underline, "boolean", true },
enabled = { opts.highlight_url.all_urls.enabled, "boolean", true },
fg = { opts.highlight_url.all_urls.fg, "string", true },
bg = { opts.highlight_url.all_urls.bg, "string", true },
underline = { opts.highlight_url.all_urls.underline, "boolean", true },
}
end

if opts.highlight_url.cursor_move then
validate {
enabled = { opts.highlight_url.enabled, "boolean", true },
fg = { opts.highlight_url.fg, "string", true },
bg = { opts.highlight_url.bg, "string", true },
underline = { opts.highlight_url.underline, "boolean", true },
enabled = { opts.highlight_url.cursor_move.enabled, "boolean", true },
fg = { opts.highlight_url.cursor_move.fg, "string", true },
bg = { opts.highlight_url.cursor_move.bg, "string", true },
underline = { opts.highlight_url.cursor_move.underline, "boolean", true },
}
end
end
Expand Down

0 comments on commit ed61f7c

Please sign in to comment.