From b59237f2d737bdf73c4a41115c159a4519051dcf 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 30cc680..4f82e8f 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; @@ -26,10 +26,10 @@ in { inherit (cfg) setupOpts; 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;}) ]; };