]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: toggle Trouble folds with <space><space>
authorSamir Benmendil <me@rmz.io>
Wed, 21 Aug 2024 12:27:17 +0000 (13:27 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 21 Aug 2024 12:27:17 +0000 (13:27 +0100)
Seriously... Why does this not inherit the global mapping for folds?

nvim/lua/plugins/editor.lua

index b4816a0c0f0a206189f4874b85f690f1c4aa68da..0407b47953fe5586329cc8b25bb6ac782c11b1ae 100644 (file)
@@ -117,6 +117,9 @@ return {
   { "folke/trouble.nvim",
     cmd = { "Trouble" },
     opts = {
+      keys = {
+        ["<space><space>"] = "fold_toggle",
+      },
       modes = {
         lsp = {
           win = { position = "right" },