aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/fs.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-05-17 11:42:18 +0100
committerGitHub <noreply@github.com>2023-05-17 11:42:18 +0100
commit189fb6203262340e7a59e782be970bcd8ae28e61 (patch)
tree2a672dcc33d1d7525850bb26e88d1758c9987a91 /runtime/lua/vim/fs.lua
parent6b19170d44ca56cf65542ee184d2bc89c6d622a9 (diff)
downloadrneovim-189fb6203262340e7a59e782be970bcd8ae28e61.tar.gz
rneovim-189fb6203262340e7a59e782be970bcd8ae28e61.tar.bz2
rneovim-189fb6203262340e7a59e782be970bcd8ae28e61.zip
feat(treesitter): improved logging (#23638)
- Add bindings to Treesitter ts_parser_set_logger and ts_parser_logger - Add logfile with path STDPATH('log')/treesitter.c - Rework existing LanguageTree loggin to use logfile - Begin implementing log levels for vim.g.__ts_debug
Diffstat (limited to 'runtime/lua/vim/fs.lua')
-rw-r--r--runtime/lua/vim/fs.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua
index 2a51bde263..7f9f3a2bce 100644
--- a/runtime/lua/vim/fs.lua
+++ b/runtime/lua/vim/fs.lua
@@ -73,10 +73,14 @@ function M.basename(file)
end
---@private
-local function join_paths(...)
+---@param ... string
+---@return string
+function M._join_paths(...)
return (table.concat({ ... }, '/'):gsub('//+', '/'))
end
+local join_paths = M._join_paths
+
---@alias Iterator fun(): string?, string?
--- Return an iterator over the files and directories located in {path}