summaryrefslogtreecommitdiffstats
path: root/nvim-primeagen/after/plugin/todo-txt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim-primeagen/after/plugin/todo-txt.lua')
-rw-r--r--nvim-primeagen/after/plugin/todo-txt.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/nvim-primeagen/after/plugin/todo-txt.lua b/nvim-primeagen/after/plugin/todo-txt.lua
new file mode 100644
index 0000000..09be576
--- /dev/null
+++ b/nvim-primeagen/after/plugin/todo-txt.lua
@@ -0,0 +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 = 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>")