aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/conf/nvim/plgs/telescope/extensions/symbols
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/extensions/symbols
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/extensions/symbols')
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix90
1 files changed, 47 insertions, 43 deletions
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)";
+ }
+ ];
};
}