diff options
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: --[[ |
