feat: updated neovim snippets;
feat: added gpg sign shortcut to neovim; feat: yuck plugin; refactor: my theme; feat: tty color theme (for tty colors compatibility); refactor: minor hyprland changes
This commit is contained in:
@@ -19,16 +19,33 @@ local get_name = function()
|
||||
end
|
||||
|
||||
return {
|
||||
-- Creates a frontmatter with markdown note metadata
|
||||
s("frontmatter", {
|
||||
t("---"),
|
||||
t({ "", "Markdown note", "" }),
|
||||
t({ "", "title: \"" }), i(1), t("\""),
|
||||
t({ "", "date: " }), f(get_date, {}),
|
||||
t({ "", "date: \"" }), f(get_date, {}), t("\""),
|
||||
t({ "", "author: \"" }), f(get_name, {}), t("\""),
|
||||
t({ "", "keywords: ["}), i(2), t("]"),
|
||||
t({ "", "tags: [["}), i(3), t("]]"),
|
||||
t({ "", "id: " }), f(timestamp, {}),
|
||||
t({ "", "---", "", "# " }),
|
||||
rep(1), -- Reuses the first insert node
|
||||
t({ "", ""}),
|
||||
t({ "", ""}),
|
||||
i(3) -- Final cursor position
|
||||
})
|
||||
i(4) -- Final cursor position
|
||||
}),
|
||||
|
||||
-- Creates a mood report template
|
||||
s("wellbeingreport", {
|
||||
t("---"),
|
||||
t({ "", "Well-being report", "" }),
|
||||
t({ "", "date: " }), f(get_date, {}),
|
||||
t({ "", "sleep: " }), i(1), t("/5"),
|
||||
t({ "", "emotions: [" }), i(2), t("]"),
|
||||
t({ "", "comfort: " }), i(3), t("/5"),
|
||||
t({ "", "complaints: ["}), i(4), t("]"),
|
||||
t({ "", "mood: " }), i(5), t("/10"),
|
||||
t({ "", "---" }),
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user