summaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/editor.lua
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-09-17 19:45:23 +0100
committerIgor Soarez <igor@soarez.org>2026-09-17 19:45:23 +0100
commit13cc065ec014b86369dfe4ad60d1a43fa06fd251 (patch)
tree684690c61b7b59758c2aac132c65b81c86de0608 /config/nvim/lua/plugins/editor.lua
dotfiles
Shell, editor and terminal configuration, the tools that go with them, and szecret, an age-based secret manager whose store lives elsewhere. History restarts here. What came before was not written to be read by anyone else, and carried machine names, addresses and an encrypted secret store; it is kept privately instead. What is left is meant to be safe on any machine, including one whose owner is not me: see CLAUDE.md for the rule it is written to.
Diffstat (limited to 'config/nvim/lua/plugins/editor.lua')
-rw-r--r--config/nvim/lua/plugins/editor.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/editor.lua b/config/nvim/lua/plugins/editor.lua
new file mode 100644
index 0000000..4e1cb4d
--- /dev/null
+++ b/config/nvim/lua/plugins/editor.lua
@@ -0,0 +1,29 @@
+return {
+ -- Highlight and navigate TODO / FIXME / HACK / BUG comments
+ {
+ "folke/todo-comments.nvim",
+ event = "VeryLazy",
+ dependencies = { "nvim-lua/plenary.nvim" },
+ opts = {},
+ keys = {
+ { "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
+ { "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
+ { "<leader>qt", "<cmd>TodoTrouble<cr>", desc = "Todo (Trouble)" },
+ },
+ },
+ -- Pretty, navigable lists for diagnostics, references, symbols, quickfix.
+ -- Lives under <leader>q ("lists") to avoid the <leader>x buffer-close prefix.
+ {
+ "folke/trouble.nvim",
+ cmd = "Trouble",
+ dependencies = { "nvim-tree/nvim-web-devicons" },
+ opts = {},
+ keys = {
+ { "<leader>qd", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics (Trouble)" },
+ { "<leader>qb", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Buffer diagnostics (Trouble)" },
+ { "<leader>qs", "<cmd>Trouble symbols toggle<cr>", desc = "Symbols (Trouble)" },
+ { "<leader>ql", "<cmd>Trouble lsp toggle<cr>", desc = "LSP defs/refs (Trouble)" },
+ { "<leader>qq", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix list (Trouble)" },
+ },
+ },
+}