refacto: add get_nodes_starting_line core util

This commit is contained in:
kiyan
2022-03-26 14:46:44 +01:00
parent 20433ced8a
commit 1831417f05
7 changed files with 20 additions and 14 deletions

View File

@@ -1,7 +1,5 @@
local a = vim.api
local core = require "nvim-tree.core"
local M = {}
M.View = {
@@ -344,8 +342,8 @@ function M._prevent_buffer_override()
end)
end
function M.is_root_folder_visible()
return core.get_cwd() ~= "/" and not M.View.hide_root_folder
function M.is_root_folder_visible(cwd)
return cwd ~= "/" and not M.View.hide_root_folder
end
function M.setup(opts)