fix(neo-tree): Add description to "Y" in Neo-Tree (#2642)
It copies the path of the file/directory
This commit is contained in:
1 parent
c43afbbdbb
commit
1a417430fc
1 file changed
+8
-5
@@ -61,11 +61,14 @@ return {
|
||||
window = {
|
||||
mappings = {
|
||||
["<space>"] = "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 = {
|
||||
|
||||
Reference in new issue
Block a user