about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plgs/telescope
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-08 13:12:44 +0200
committerSoispha <soispha@vhack.eu>2023-10-08 13:12:44 +0200
commit8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7 (patch)
tree90530153a36e969569115c6e06ea17c473826670 /hm/soispha/conf/nvim/plgs/telescope
parentchore(version): v1.15.0 (diff)
downloadnixos-config-8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7.zip
fix(hm/conf/nvim): Update to new keymap format
Diffstat (limited to 'hm/soispha/conf/nvim/plgs/telescope')
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/extensions/bibtex/default.nix12
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix18
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix90
3 files changed, 63 insertions, 57 deletions
diff --git a/hm/soispha/conf/nvim/plgs/telescope/extensions/bibtex/default.nix b/hm/soispha/conf/nvim/plgs/telescope/extensions/bibtex/default.nix
index 12c9736c..946d32f1 100644
--- a/hm/soispha/conf/nvim/plgs/telescope/extensions/bibtex/default.nix
+++ b/hm/soispha/conf/nvim/plgs/telescope/extensions/bibtex/default.nix
@@ -4,10 +4,12 @@
     extraPlugins = [
       pkgs.vimExtraPlugins.telescope-bibtex-nvim
     ];
-    maps.normal = {
-      "<space>ib" = {
-        desc = "[i]nsert a [b]atex citation";
-      };
-    };
+    keymaps = [
+      {
+        key = "<space>ib";
+        mode = "n";
+        options.desc = "[i]nsert a [b]atex citation";
+      }
+    ];
   };
 }
diff --git a/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix b/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
index 4a4c22be..b236f3c5 100644
--- a/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
+++ b/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
@@ -1,14 +1,14 @@
 {...}: {
   programs.nixvim = {
-    maps = {
-      normal = {
-        "gff" = {
-          action = "function() require('telescope').extensions.frecency.frecency() end";
-          lua = true;
-          desc = "activate the frecency file selection";
-        };
-      };
-    };
+    keymaps = [
+      {
+        key = "gff";
+        mode = "n";
+        action = "function() require('telescope').extensions.frecency.frecency() end";
+        lua = true;
+        options.desc = "activate the frecency file selection";
+      }
+    ];
     plugins.telescope = {
       extensions.frecency = {
         enable = true;
diff --git a/hm/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix b/hm/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix
index fe38f8c1..fa166c02 100644
--- a/hm/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix
+++ b/hm/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix
@@ -4,48 +4,52 @@
       # Source of symbols for telescope symbols
       pkgs.vimPlugins.telescope-symbols-nvim
     ];
-    maps = {
-      normal = {
-        "<space>il" = {
-          action = ''
-            function()
-              require('telescope.builtin').symbols{ sources = {
-                'latex'
-              }}
-            end
-          '';
-          lua = true;
-          desc = "[i]nsert a [l]atex symbol";
-        };
-        "<space>ie" = {
-          action = ''
-            function()
-              require('telescope.builtin').symbols{ sources = {
-                  'emoji',
-              }}
-            end
-          '';
-          lua = true;
-          desc = "[i]nsert a [e]moji";
-        };
-        "<space>is" = {
-          action = ''
-            function()
-              require('telescope.builtin').symbols{ sources = {
-                  'emoji',
-                  'gitmoji',
-                  'julia',
-                  'kaomoji',
-                  'latex',
-                  'math',
-                  'nerd',
-              }}
-            end
-          '';
-          lua = true;
-          desc = "[i]nsert a [s]ymbol (like emojis)";
-        };
-      };
-    };
+    keymaps = [
+      {
+        key = "<space>il";
+        mode = "n";
+        action = ''
+          function()
+            require('telescope.builtin').symbols{ sources = {
+              'latex'
+            }}
+          end
+        '';
+        lua = true;
+        options.desc = "[i]nsert a [l]atex symbol";
+      }
+      {
+        key = "<space>ie";
+        mode = "n";
+        action = ''
+          function()
+            require('telescope.builtin').symbols{ sources = {
+                'emoji',
+            }}
+          end
+        '';
+        lua = true;
+        options.desc = "[i]nsert a [e]moji";
+      }
+      {
+        key = "<space>is";
+        mode = "n";
+        action = ''
+          function()
+            require('telescope.builtin').symbols{ sources = {
+                'emoji',
+                'gitmoji',
+                'julia',
+                'kaomoji',
+                'latex',
+                'math',
+                'nerd',
+            }}
+          end
+        '';
+        lua = true;
+        options.desc = "[i]nsert a [s]ymbol (like emojis)";
+      }
+    ];
   };
 }