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/bibtex/default.nix | 12 +-- .../plgs/telescope/extensions/frecency/default.nix | 18 ++--- .../plgs/telescope/extensions/symbols/default.nix | 90 +++++++++++----------- 3 files changed, 63 insertions(+), 57 deletions(-) (limited to 'hm/soispha/conf/nvim/plgs/telescope') 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 = { - "ib" = { - desc = "[i]nsert a [b]atex citation"; - }; - }; + keymaps = [ + { + key = "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 = { - "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