From 1a417430fc388b9a0b063017188a92d8ad14534f Mon Sep 17 00:00:00 2001 From: Aman9das <39594914+Aman9das@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:04:20 +0530 Subject: [PATCH] fix(neo-tree): Add description to "Y" in Neo-Tree (#2642) It copies the path of the file/directory --- lua/lazyvim/plugins/editor.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 46860e7b..62ab4d7a 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -61,11 +61,14 @@ return { window = { mappings = { [""] = "none", - ["Y"] = function(state) - local node = state.tree:get_node() - local path = node:get_id() - vim.fn.setreg("+", path, "c") - end, + ["Y"] = { + function(state) + local node = state.tree:get_node() + local path = node:get_id() + vim.fn.setreg("+", path, "c") + end, + desc = "copy path to clipboard", + }, }, }, default_component_configs = {