fix(api): use copy.node instead of copy.name

ref #1461
This commit is contained in:
kiyan 2022-07-25 14:35:01 +02:00
parent a0448184af
commit e95bfbfc2d
2 changed files with 2 additions and 2 deletions

View File

@ -995,7 +995,7 @@ exists.
- cut
- paste
- print_clipboard
- copy.name
- copy.node
- copy.absolute_path
- copy.filename
- copy.relative_path

View File

@ -40,7 +40,7 @@ Api.fs.rename_sub = inject_node(require("nvim-tree.actions.fs.rename-file").fn(t
Api.fs.cut = inject_node(require("nvim-tree.actions.fs.copy-paste").cut)
Api.fs.paste = inject_node(require("nvim-tree.actions.fs.copy-paste").paste)
Api.fs.print_clipboard = require("nvim-tree.actions.fs.copy-paste").print_clipboard
Api.fs.copy.name = inject_node(require("nvim-tree.actions.fs.copy-paste").copy)
Api.fs.copy.node = inject_node(require("nvim-tree.actions.fs.copy-paste").copy)
Api.fs.copy.absolute_path = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_absolute_path)
Api.fs.copy.filename = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_filename)
Api.fs.copy.relative_path = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_path)