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 --- hm/soispha/conf/nvim/plgs/goto-preview/default.nix | 44 +++++++++++++--------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'hm/soispha/conf/nvim/plgs/goto-preview') diff --git a/hm/soispha/conf/nvim/plgs/goto-preview/default.nix b/hm/soispha/conf/nvim/plgs/goto-preview/default.nix index 740bb04c..70527b93 100644 --- a/hm/soispha/conf/nvim/plgs/goto-preview/default.nix +++ b/hm/soispha/conf/nvim/plgs/goto-preview/default.nix @@ -11,32 +11,42 @@ extraPlugins = [ pkgs.vimExtraPlugins.goto-preview ]; - maps.normal = { - "gd" = { + keymaps = [ + { + key = "gd"; + mode = "n"; action = "require('goto-preview').goto_preview_definition"; lua = true; - desc = "[G]oto [D]efinition"; - }; - "gtd" = { + options.desc = "[G]oto [D]efinition"; + } + { + key = "gtd"; + mode = "n"; action = "require('goto-preview').goto_preview_type_definition"; lua = true; - desc = "[G]oto the [t]ype [D]efinition"; - }; - "gi" = { + options.desc = "[G]oto the [t]ype [D]efinition"; + } + { + key = "gi"; + mode = "n"; action = "require('goto-preview').goto_preview_implementation"; lua = true; - desc = "[G]oto [I]mplementations"; - }; - "gr" = { + options.desc = "[G]oto [I]mplementations"; + } + { + key = "gr"; + mode = "n"; action = "require('goto-preview').goto_preview_references"; lua = true; - desc = "[G]o to all [R]eferences of the symbol"; - }; - "\\" = { + options.desc = "[G]o to all [R]eferences of the symbol"; + } + { + key = "\\"; + mode = "n"; action = "require('goto-preview').close_all_win"; lua = true; - desc = "close all preview windows"; - }; - }; + options.desc = "close all preview windows"; + } + ]; }; } -- cgit 1.4.1