Skip to content

Commit

Permalink
chore: autoformat with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas authored and github-actions[bot] committed Jan 12, 2025
1 parent 1783928 commit 3548a34
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lua/neorg/modules/core/export/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ module.public = {
---used for the export
export_range = function(buffer, start_row, end_row, filetype)
local converter = module.private.get_converter_checked(filetype)
if not converter then return end
if not converter then
return
end
local content = vim.iter(vim.api.nvim_buf_get_lines(buffer, start_row - 1, end_row, false)):join("\n")
local root = ts.get_document_root(content)
if not root then
Expand Down Expand Up @@ -202,10 +204,7 @@ module.public = {
table.insert(output, result)
end
elseif exporter == true then
table.insert(
output,
ts.get_node_text(node, source)
)
table.insert(output, ts.get_node_text(node, source))
else
table.insert(output, exporter)
end
Expand Down Expand Up @@ -270,7 +269,6 @@ module.private = {

return converter, converter_config
end,

}

---@param event neorg.event
Expand Down

0 comments on commit 3548a34

Please sign in to comment.