aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r--.config/nvim/lua/plugins.lua46
1 files changed, 43 insertions, 3 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index 2eba5f1..11b0b3d 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -218,7 +218,47 @@ local function init_plugins()
additional_vim_regex_highlighting = { "org" };
};
})
- orgmode.setup({ org_default_notes_file = "~/.cache/org/refile.org" })
+
+ ---@diagnostic disable-next-line: missing-fields
+ orgmode.setup({
+ org_agenda_files = "~/.local/share/org/**/*.org";
+ org_default_notes_file = "~/.local/share/org/agenda.org";
+ org_startup_folded = "showeverything";
+ org_todo_keywords = {
+ "TODO";
+ "FIXME";
+ "BLOCKED";
+ "ONHOLD";
+ "|";
+ "DONE";
+ "RESOLVED";
+ "CLOSED";
+ };
+ org_todo_repeat_to_state = "TODO";
+ org_todo_keyword_faces = {
+ FIXME = ":background #FF5555 :foreground #F1FA8C";
+ TODO = ":background #FF79C6 :foreground #F1FA8C"; -- overrides builtin color for `TODO` keyword
+ BLOCKED = ":foreground #F1FA8C";
+ ONHOLD = ":foreground #F1FA8C";
+ };
+ org_capture_templates = {
+ a = {
+ description = "TODO";
+ template = "* TODO [#B] (%<%Y-%m-%d>)\n\n%?";
+ target = "~/.local/share/org/agenda.org";
+ };
+ t = {
+ description = "Today";
+ template = "* Today (%<%Y-%m-%d>) %<%A>\n** %U\n\n%?";
+ target = "~/.local/share/org/journal/%<%Y-%m-%d>.org";
+ };
+ n = {
+ description = "Note";
+ template = "* Note (%<%Y-%m-%d>) %?";
+ target = "~/.local/share/org/note/%<%Y-%m-%d>.org";
+ };
+ };
+ })
mini_surround.setup({})
mini_comment.setup({
@@ -286,8 +326,8 @@ local function init_plugins()
cyclic = true;
-- whether the shada file is updated after modifying uppercase marks. default false
force_write_shada = false;
- -- how often (in ms) to redraw signs/recompute mark positions.
- -- higher values will have better performance but may cause visual lag,
+ -- how often (in ms) to redraw signs/recompute mark positions.
+ -- higher values will have better performance but may cause visual lag,
-- while lower values may cause performance penalties. default 150.
refresh_interval = 250;
-- sign priorities for each type of mark - builtin marks, uppercase marks, lowercase