Skip to content

Commit 98518a0

Browse files
committed
refactor(#2831): multi instance clipboard
1 parent e1996c9 commit 98518a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lua/nvim-tree/explorer/init.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function Explorer.new(path)
5252
explorer.watcher = watch.create_watcher(explorer)
5353
explorer.filters = Filters:new(M.config, explorer)
5454
explorer.live_filter = LiveFilter:new(M.config, explorer)
55-
-- explorer.clipboard = require "nvim-tree.actions.fs.copy-paste":new(M.config, explorer)
5655
explorer.clipboard = Clipboard:new(M.config, explorer)
5756
explorer:_load(explorer)
5857
return explorer
@@ -90,7 +89,7 @@ function M.setup(opts)
9089
require("nvim-tree.explorer.reload").setup(opts)
9190
require("nvim-tree.explorer.watch").setup(opts)
9291

93-
Clipboard = copy_paste or require "nvim-tree.actions.fs.copy-paste"
92+
Clipboard = require "nvim-tree.actions.fs.copy-paste"
9493
end
9594

9695
M.Explorer = Explorer

0 commit comments

Comments
 (0)