1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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>")
|