aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-06-30 13:49:14 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-06-30 13:49:14 +0000
commit304b5739bb6c3b5251fba470e2083855b4b58b33 (patch)
tree0e1f6b3ae0d562f8eeb6b6a8a0163f9a3ae992f8 /.config
parent40b6011b2ea289f75711faaf0571d6e3cb4e6619 (diff)
downloaddotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.tar
dotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.tar.gz
dotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.tar.bz2
dotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.tar.lz
dotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.tar.xz
dotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.tar.zst
dotfiles-304b5739bb6c3b5251fba470e2083855b4b58b33.zip
nvim: fill in orgmode config
Diffstat (limited to '.config')
-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