diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-08-26 21:05:27 +0200 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-09-27 13:09:12 +0200 |
| commit | 0a51d492a59b4834ca16907471eeb81e00a59c1b (patch) | |
| tree | 474c597d58c026bb18da4c74b7b30fd3932c648d /lua/nvim-treesitter/utils.lua | |
| parent | 98c12ec23a6df2f2f505304b61c4b2eefc0a568f (diff) | |
Add lockfile and make lockfile default install revision
Diffstat (limited to 'lua/nvim-treesitter/utils.lua')
| -rw-r--r-- | lua/nvim-treesitter/utils.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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: --[[ |
