refactor(actions): move actions into semantic modules (#1410)
This commit is contained in:
@@ -7,12 +7,12 @@ local colors = require "nvim-tree.colors"
|
||||
local renderer = require "nvim-tree.renderer"
|
||||
local view = require "nvim-tree.view"
|
||||
local utils = require "nvim-tree.utils"
|
||||
local change_dir = require "nvim-tree.actions.change-dir"
|
||||
local change_dir = require "nvim-tree.actions.root.change-dir"
|
||||
local legacy = require "nvim-tree.legacy"
|
||||
local core = require "nvim-tree.core"
|
||||
local reloaders = require "nvim-tree.actions.reloaders"
|
||||
local copy_paste = require "nvim-tree.actions.copy-paste"
|
||||
local collapse_all = require "nvim-tree.actions.collapse-all"
|
||||
local reloaders = require "nvim-tree.actions.reloaders.reloaders"
|
||||
local copy_paste = require "nvim-tree.actions.fs.copy-paste"
|
||||
local collapse_all = require "nvim-tree.actions.tree-modifiers.collapse-all"
|
||||
local git = require "nvim-tree.git"
|
||||
|
||||
local _config = {}
|
||||
@@ -116,7 +116,7 @@ function M.open_replacing_current_buffer(cwd)
|
||||
end
|
||||
view.open_in_current_win { hijack_current_buf = false, resize = false }
|
||||
require("nvim-tree.renderer").draw()
|
||||
require("nvim-tree.actions.find-file").fn(bufname)
|
||||
require("nvim-tree.actions.finders.find-file").fn(bufname)
|
||||
end
|
||||
|
||||
function M.tab_change()
|
||||
@@ -163,7 +163,7 @@ function M.find_file(with_open, bufnr, bang)
|
||||
if bang or _config.update_focused_file.update_root then
|
||||
M.change_root(filepath, bufnr)
|
||||
end
|
||||
require("nvim-tree.actions.find-file").fn(filepath)
|
||||
require("nvim-tree.actions.finders.find-file").fn(filepath)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user