Skip to content

Commit

Permalink
chore: Fixed typo and added definitions to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
OXY2DEV committed Sep 8, 2024
1 parent 92f5320 commit d13c952
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/markview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ markview.deep_merge = function (behavior, tbl_1, tbl_2)
return tbl_1;
end

markview.hl_exits = function (hl_list, hl)
markview.hl_exists = function (hl_list, hl)
for index, item in ipairs(hl_list) do
if item.group_name == hl.group_name then
return true, index;
Expand Down Expand Up @@ -96,7 +96,7 @@ markview.add_hls = function (obj)
local _n = {};

for _, item in ipairs(_o) do
local exists, index = markview.hl_exits(use_hl, item);
local exists, index = markview.hl_exists(use_hl, item);

if exists == true then
table.remove(use_hl, index);
Expand Down
8 changes: 8 additions & 0 deletions lua/markview/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,10 @@ renderer.render_links = function (buffer, content, config_table)
});
end

--- Renderer for custom emails
---@param buffer number
---@param content any
---@param config_table markview.render_config.links
renderer.render_email_links = function (buffer, content, config_table)
if not config_table or config_table.enable == false then
return;
Expand Down Expand Up @@ -1469,6 +1473,10 @@ renderer.render_email_links = function (buffer, content, config_table)
});
end

--- Renderer for custom image links
---@param buffer number
---@param content any
---@param config_table markview.render_config.links
renderer.render_img_links = function (buffer, content, config_table)
if not config_table or config_table.enable == false then
return;
Expand Down

0 comments on commit d13c952

Please sign in to comment.