nvim-tree.lua/lua/lib/conf.lua
2020-02-18 15:59:53 +01:00

24 lines
425 B
Lua

local BUF_NAME = 'LuaTree'
local function get_cwd() return vim.loop.cwd() end
local ROOT_PATH = get_cwd() .. '/'
local function get_buf_name()
return BUF_NAME
end
local function get_root_path()
return ROOT_PATH
end
local function set_root_path(path)
ROOT_PATH = path
end
return {
get_buf_name = get_buf_name;
get_root_path = get_root_path;
set_root_path = set_root_path;
get_cwd = get_cwd;
}