From 8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 8 Oct 2023 13:12:44 +0200 Subject: fix(hm/conf/nvim): Update to new keymap format --- .../plgs/telescope/extensions/symbols/default.nix | 90 +++++++++++----------- 1 file changed, 47 insertions(+), 43 deletions(-) (limited to 'hm/soispha/conf/nvim/plgs/telescope/extensions/symbols') 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 = { - "il" = { - action = '' - function() - require('telescope.builtin').symbols{ sources = { - 'latex' - }} - end - ''; - lua = true; - desc = "[i]nsert a [l]atex symbol"; - }; - "ie" = { - action = '' - function() - require('telescope.builtin').symbols{ sources = { - 'emoji', - }} - end - ''; - lua = true; - desc = "[i]nsert a [e]moji"; - }; - "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 = "il"; + mode = "n"; + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'latex' + }} + end + ''; + lua = true; + options.desc = "[i]nsert a [l]atex symbol"; + } + { + key = "ie"; + mode = "n"; + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'emoji', + }} + end + ''; + lua = true; + options.desc = "[i]nsert a [e]moji"; + } + { + key = "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)"; + } + ]; }; } -- cgit 1.4.1