From 92a1ca2692a646dce0d15ae26b5a2a351f7f3429 Mon Sep 17 00:00:00 2001 From: harry123 Date: Mon, 7 Jul 2025 17:41:41 +0200 Subject: [PATCH] added trouble --- config/config.nix | 1 + config/keys.nix | 19 +++++++++++++++++++ config/plugins.nix | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/config/config.nix b/config/config.nix index 67721ac..c715570 100644 --- a/config/config.nix +++ b/config/config.nix @@ -43,5 +43,6 @@ diagnostic.settings = { virtual_text = false; + virtual_line = true; }; } diff --git a/config/keys.nix b/config/keys.nix index 6771318..f8d075a 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -108,6 +108,25 @@ desc = "Toggle terminal"; }; } + + # trouble.nvim + { + mode = "n"; + action = "Trouble diagnostics toggle"; + key = "xx"; + options = { + desc = "Diagnostics (Trouble)"; + }; + } + + { + mode = "n"; + action = "Trouble diagnostics toggle filter.buf=0"; + key = "xX"; + options = { + desc = "Buffer Diagnostics (Trouble)"; + }; + } ]; plugins.fzf-lua.keymaps = { diff --git a/config/plugins.nix b/config/plugins.nix index 2e7dd79..27287bc 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -159,5 +159,15 @@ toggleterm = { enable = true; }; + trouble = { + enable = true; + settings = { + auto_jump = true; + auto_refresh = true; + }; + }; + todo-comments = { + enable = true; + }; }; }