From d3a3731a649fc9e227728275776524000a86498c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=BCdecke=20Sascha?= Date: Mon, 12 Oct 2026 13:18:22 +0200 Subject: [PATCH] Better org agenda colors --- colors/lunaperche-sl.vim | 3 +++ lua/plugins.lua | 21 +++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/colors/lunaperche-sl.vim b/colors/lunaperche-sl.vim index 161d5bf..bb6d876 100644 --- a/colors/lunaperche-sl.vim +++ b/colors/lunaperche-sl.vim @@ -2,3 +2,6 @@ runtime colors/lunaperche.vim " fix VertSplit for lunaperche hi VertSplit guifg=#aaaaaa +" hi DiffAdd guifg=white +highlight DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red + diff --git a/lua/plugins.lua b/lua/plugins.lua index 92d0aa2..545ca49 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -204,6 +204,9 @@ require("lazy").setup({ } }, org_agenda_hide_empty_blocks = true, + org_agenda_skip_scheduled_if_done = true, -- Hide scheduled entries from agenda if they are in a "DONE" state. + org_agenda_skip_deadline_if_done = true, -- Hide deadline entries from agenda if they are in a "DONE" state. + org_agenda_current_time_string = '<- NOW', org_agenda_custom_commands = { -- "c" is the shortcut that will be used in the prompt c = { @@ -228,7 +231,7 @@ require("lazy").setup({ { type = 'tags_todo', match = '-PRIORITY="A"', --Same as providing a "Match:" for tags view oa + m, See: https://orgmode.org/manual/Matching-tags-and-properties.html - org_agenda_overriding_header = 'Normal prio todos', + org_agenda_overriding_header = 'Unscheduled todos', org_agenda_sorting_strategy = { 'tag-up', 'todo-state-down', 'priority-down' }, -- See all options available on org_agenda_sorting_strategy -- org_agenda_todo_ignore_scheduled = 'all', -- Ignore all headlines that are scheduled. Possible values: past | future | all @@ -242,7 +245,7 @@ require("lazy").setup({ org_default_notes_file = sl_opt.org_default_notes_file, org_archive_location = sl_opt.org_archive_location, org_capture_templates = { - t = { description = 'Task', template = "* TODO %u %?\n SCHEDULED: %^{Due date}t" }, + t = { description = 'Task', template = "* TODO %?\n %u SCHEDULED: %^{Due date}t" }, i = { description = 'Interruption', template = "* STARTED [#A] %^{Working on}\n %U\n %a\n" }, }, org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' }, @@ -273,8 +276,18 @@ require("lazy").setup({ callback = function() -- Define own colors -- color updates - vim.api.nvim_set_hl(0, '@org.agenda.weekend', { fg = '#aaaaaa' }) - vim.api.nvim_set_hl(0, '@org.agenda.day', { fg = '#eeeeee' }) + vim.api.nvim_set_hl(0, '@org.agenda.weekend', { fg = '#959595', reverse = true }) + vim.api.nvim_set_hl(0, '@org.agenda.day', { fg = '#c0c0c0', reverse = true }) + vim.api.nvim_set_hl(0, '@org.keyword.todo', { fg = '#FFAA00'}) + vim.api.nvim_set_hl(0, '@org.keyword.done', { fg = '#00DFDF'}) + vim.api.nvim_set_hl(0, '@org.agenda.time_grid', { fg = '#008F8F' }) + -- vim.api.nvim_set_hl(0, '@org.agenda.scheduled', { fg = '#19D9D9' }) + -- vim.api.nvim_set_hl(0, '@org.agenda.scheduled', { fg = 'white' }) + vim.api.nvim_set_hl(0, '@org.agenda.scheduled_past', { fg = '#FF841E' }) + vim.api.nvim_set_hl(0, '@org.agenda.scheduled', { fg = '#EEEEEE' }) + vim.api.nvim_set_hl(0, '@org.agenda.separator', { fg = '#656565' }) + + end })