Skip to content

Commit

Permalink
chore: autoformat with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro authored and github-actions[bot] committed Nov 18, 2023
1 parent 603b633 commit 095fad9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 24 deletions.
18 changes: 11 additions & 7 deletions lua/neorg/modules/core/clipboard/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ module.load = function()

return callback.cb(
node,
vim.split(register, "\n", { ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
plain = true,
-- TODO: This causes problems in places
-- where you actually want to copy
-- newlines.
trimempty = true,
}),
vim.split(
register,
"\n",
{ ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
plain = true,
-- TODO: This causes problems in places
-- where you actually want to copy
-- newlines.
trimempty = true,
}
),
{
start = range[1],
["end"] = range[2],
Expand Down
20 changes: 12 additions & 8 deletions lua/neorg/modules/core/tempus/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,18 @@ module.public = {
return os.date( ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
"*t",
os.time(
vim.tbl_deep_extend("force", os.date("*t"), { ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
day = parsed_date.day,
month = parsed_date.month and parsed_date.month.number or nil,
year = parsed_date.year,
hour = parsed_date.time and parsed_date.time.hour,
min = parsed_date.time and parsed_date.time.minute,
sec = parsed_date.time and parsed_date.time.second,
})
vim.tbl_deep_extend(
"force",
os.date("*t"),
{ ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
day = parsed_date.day,
month = parsed_date.month and parsed_date.month.number or nil,
year = parsed_date.year,
hour = parsed_date.time and parsed_date.time.hour,
min = parsed_date.time and parsed_date.time.minute,
sec = parsed_date.time and parsed_date.time.second,
}
)
)
)
end,
Expand Down
24 changes: 15 additions & 9 deletions lua/neorg/modules/core/ui/calendar/views/monthly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,21 @@ module.private = {
}, "center"),

-- Help text at the bottom left of the screen
help_and_custom_input = module.private.set_decorational_extmark(ui_info, ui_info.height - 1, 0, 0, {
{ "?", "@character" },
{ " - " },
{ "help", "@text.strong" },
{ " " },
{ "i", "@character" },
{ " - " },
{ "custom input", "@text.strong" },
}),
help_and_custom_input = module.private.set_decorational_extmark(
ui_info,
ui_info.height - 1,
0,
0,
{
{ "?", "@character" },
{ " - " },
{ "help", "@text.strong" },
{ " " },
{ "i", "@character" },
{ " - " },
{ "custom input", "@text.strong" },
}
),

-- The current view (bottom right of the screen)
current_view = module.private.set_decorational_extmark(
Expand Down

0 comments on commit 095fad9

Please sign in to comment.