diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-09 09:05:17 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-09 09:05:17 +0100 |
commit | bcab2ba0b1fe704145b8479e66b3c46177ed669f (patch) | |
tree | 0a7eb92052b0e6509f9e41d4cb5b3d1604142be7 /nvim/after/plugin/todo-txt.lua | |
parent | 983dba6202277a158d10955aec2b2a8700cbaa22 (diff) |
Adds better configuration for todotxt.nvim
Better hightlighting and a few keyboard shortcuts.
Diffstat (limited to 'nvim/after/plugin/todo-txt.lua')
-rw-r--r-- | nvim/after/plugin/todo-txt.lua | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/nvim/after/plugin/todo-txt.lua b/nvim/after/plugin/todo-txt.lua index 917805d..09be576 100644 --- a/nvim/after/plugin/todo-txt.lua +++ b/nvim/after/plugin/todo-txt.lua @@ -1,7 +1,44 @@ require('todotxt-nvim').setup({ todo_file = "/home/lemon/Documents/Notes/todo/todo.txt", + capture = { + alternative_priority = { + A = "today", + B = "tomorrow", + C = "this week", + D = "next week", + E = "next month", + }, + }, + highlights = { + priorities = { + A = { + fg = "yellow", + bg = "NONE", + style = "bold", + }, + B = { + fg = "green", + bg = "NONE", + style = "bold", + }, + C = { + fg = "cyan", + bg = "NONE", + style = "bold", + }, + D = { + fg = "magenta", + bg = "NONE", + style = "bold", + }, + }, + }, sidebar = { - width = 60, + width = 70, position = "right", -- default: "right" }, }) + +-- Keyboard shortcuts for todotxt-nvim. +vim.keymap.set("n", "<localleader>tp", "<cmd>ToDoTxtTasksToggle<CR>") +vim.keymap.set("n", "<localleader>ta", "<cmd>ToDoTxtCapture<CR>") |