From 458c0f6ed583c379fb4478b2baa2db8e10a00eef Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 17 Nov 2024 20:05:57 +0100 Subject: [PATCH] nvimtree: use new keybind helper --- modules/plugins/filetree/nvimtree/config.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/plugins/filetree/nvimtree/config.nix b/modules/plugins/filetree/nvimtree/config.nix index 7881fa79..7c34fa25 100644 --- a/modules/plugins/filetree/nvimtree/config.nix +++ b/modules/plugins/filetree/nvimtree/config.nix @@ -6,7 +6,7 @@ }: let inherit (lib.strings) optionalString; inherit (lib.modules) mkIf; - inherit (lib.nvim.binds) mkLznBinding; + inherit (lib.nvim.binds) mkKeymap; inherit (lib.nvim.dag) entryAnywhere; inherit (lib.nvim.binds) pushDownDefault; @@ -27,10 +27,10 @@ in { cmd = ["NvimTreeClipboard" "NvimTreeClose" "NvimTreeCollapse" "NvimTreeCollapseKeepBuffers" "NvimTreeFindFile" "NvimTreeFindFileToggle" "NvimTreeFocus" "NvimTreeHiTest" "NvimTreeOpen" "NvimTreeRefresh" "NvimTreeResize" "NvimTreeToggle"]; keys = [ - (mkLznBinding ["n"] cfg.mappings.toggle ":NvimTreeToggle" mappings.toggle.description) - (mkLznBinding ["n"] cfg.mappings.refresh ":NvimTreeRefresh" mappings.refresh.description) - (mkLznBinding ["n"] cfg.mappings.findFile ":NvimTreeFindFile" mappings.findFile.description) - (mkLznBinding ["n"] cfg.mappings.focus ":NvimTreeFocus" mappings.focus.description) + (mkKeymap ["n"] cfg.mappings.toggle ":NvimTreeToggle" {desc = mappings.toggle.description;}) + (mkKeymap ["n"] cfg.mappings.refresh ":NvimTreeRefresh" {desc = mappings.refresh.description;}) + (mkKeymap ["n"] cfg.mappings.findFile ":NvimTreeFindFile" {desc = mappings.findFile.description;}) + (mkKeymap ["n"] cfg.mappings.focus ":NvimTreeFocus" {desc = mappings.focus.description;}) ]; };