mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Add description to "Y" in Neo-Tree
It copies the path of the file/directory
This commit is contained in:
parent
91126b9896
commit
791e081bfc
1 changed files with 8 additions and 5 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue