1
0
Fork 0
codesnap.nvim/lua/codesnap/utils/path.lua

10 lines
153 B
Lua
Raw Normal View History

2024-02-19 14:27:17 +00:00
local path_utils = {}
function path_utils.back(path)
local parsed_path, _ = path:gsub("/[^\\/]+/?$", "")
return parsed_path
end
return path_utils