Skip to content

Commit

Permalink
chore: format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 5, 2023
1 parent 7ddc83f commit 45efa0e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/neorg/modules/core/summary/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.load = function()
-- search up to 20 lines (a doc could potentially have metadata without metadata.title)
local _, heading = heading_query:iter_captures(document_root, bufnr)()
if not heading then
return nil
return nil
end
local start_line, _ = heading:start()
local lines = vim.api.nvim_buf_get_lines(bufnr, start_line, start_line + 1, false)
Expand Down Expand Up @@ -124,7 +124,13 @@ module.load = function()
for _, datapoint in ipairs(data) do
table.insert(
result,
table.concat({ " - {:$", datapoint.norgname, ":}[", neorg.lib.title(datapoint.title), "]" })
table.concat({
" - {:$",
datapoint.norgname,
":}[",
neorg.lib.title(datapoint.title),
"]",
})
.. (datapoint.description and (table.concat({ " - ", datapoint.description })) or "")
)
end
Expand Down

0 comments on commit 45efa0e

Please sign in to comment.