From 13cc065ec014b86369dfe4ad60d1a43fa06fd251 Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Thu, 17 Sep 2026 19:45:23 +0100 Subject: 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. --- config/nvim/lua/plugins/editor.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 config/nvim/lua/plugins/editor.lua (limited to 'config/nvim/lua/plugins/editor.lua') 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" }, + { "qt", "TodoTrouble", desc = "Todo (Trouble)" }, + }, + }, + -- Pretty, navigable lists for diagnostics, references, symbols, quickfix. + -- Lives under q ("lists") to avoid the x buffer-close prefix. + { + "folke/trouble.nvim", + cmd = "Trouble", + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = {}, + keys = { + { "qd", "Trouble diagnostics toggle", desc = "Diagnostics (Trouble)" }, + { "qb", "Trouble diagnostics toggle filter.buf=0", desc = "Buffer diagnostics (Trouble)" }, + { "qs", "Trouble symbols toggle", desc = "Symbols (Trouble)" }, + { "ql", "Trouble lsp toggle", desc = "LSP defs/refs (Trouble)" }, + { "qq", "Trouble qflist toggle", desc = "Quickfix list (Trouble)" }, + }, + }, +} -- cgit v1.2.3