From 0a51d492a59b4834ca16907471eeb81e00a59c1b Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 26 Aug 2020 21:05:27 +0200 Subject: Add lockfile and make lockfile default install revision --- lua/nvim-treesitter/utils.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/nvim-treesitter/utils.lua') diff --git a/lua/nvim-treesitter/utils.lua b/lua/nvim-treesitter/utils.lua index 24813bc9..93c2a8d6 100644 --- a/lua/nvim-treesitter/utils.lua +++ b/lua/nvim-treesitter/utils.lua @@ -21,6 +21,11 @@ function M.get_path_sep() return fn.has('win32') == 1 and '\\' or '/' end +function M.join_paths(...) + local sep = M.get_path_sep() + return table.concat({...}, sep) +end + -- Returns a function that joins the given arguments with separator. Arguments -- can't be nil. Example: --[[ -- cgit v1.2.3