summaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/todo.lua
diff options
context:
space:
mode:
author2025-06-04 12:06:36 +0300
committer2025-06-04 12:06:36 +0300
commit27416cef9979882ee8c1da819d48216974c46535 (patch)
treec5c074c2ffd13b00a3534931c9bc5f48b633a4a6 /nvim/lua/plugins/todo.lua
parent30.05.2025 (diff)
downloaddotfiles-27416cef9979882ee8c1da819d48216974c46535.tar.gz
dotfiles-27416cef9979882ee8c1da819d48216974c46535.tar.bz2
dotfiles-27416cef9979882ee8c1da819d48216974c46535.tar.xz
dotfiles-27416cef9979882ee8c1da819d48216974c46535.zip
04.06.2025
Diffstat (limited to '')
-rw-r--r--nvim/lua/plugins/todo.lua69
1 files changed, 69 insertions, 0 deletions
diff --git a/nvim/lua/plugins/todo.lua b/nvim/lua/plugins/todo.lua
new file mode 100644
index 0000000..ee672ab
--- /dev/null
+++ b/nvim/lua/plugins/todo.lua
@@ -0,0 +1,69 @@
+return {
+ "phrmendes/todotxt.nvim",
+ cmd = { "TodoTxt", "DoneTxt" },
+ opts = {
+ todotxt = "/home/neonxp/Документы/todo.txt",
+ donetxt = "/home/neonxp/Документы/done.txt",
+ },
+ -- suggested keybindings
+ keys = {
+ {
+ "<leader>tp",
+ function() require("todotxt").cycle_priority() end,
+ desc = "todo.txt: cycle priority",
+ ft = "todotxt",
+ },
+ {
+ "<cr>",
+ function() require("todotxt").toggle_todo_state() end,
+ desc = "todo.txt: toggle task state",
+ ft = "todotxt",
+ },
+ {
+ "<leader>tn",
+ function() require("todotxt").capture_todo() end,
+ desc = "New entry",
+ },
+ {
+ "<leader>tt",
+ function() require("todotxt").toggle_todotxt() end,
+ desc = "Open",
+ },
+ {
+ "<leader>tr",
+ function() require("todotxt").move_done_tasks() end,
+ desc = "Move to done.txt",
+ ft = "todotxt",
+ },
+ {
+ "<leader>tss",
+ function() require("todotxt").sort_tasks() end,
+ desc = "Sort",
+ ft = "todotxt",
+ },
+ {
+ "<leader>tsd",
+ function() require("todotxt").sort_tasks_by_due_date() end,
+ desc = "Sort by due:date",
+ ft = "todotxt",
+ },
+ {
+ "<leader>tsP",
+ function() require("todotxt").sort_tasks_by_priority() end,
+ desc = "Sort by (priority)",
+ ft = "todotxt",
+ },
+ {
+ "<leader>tsc",
+ function() require("todotxt").sort_tasks_by_context() end,
+ desc = "Sort by @context",
+ ft = "todotxt",
+ },
+ {
+ "<leader>tsp",
+ function() require("todotxt").sort_tasks_by_project() end,
+ desc = "Sort by +project",
+ ft = "todotxt",
+ },
+ },
+}