diff --git a/lua/dotvim/extra/fswatch.lua b/lua/dotvim/extra/fswatch.lua index 48e2ef23..a440e3ae 100644 --- a/lua/dotvim/extra/fswatch.lua +++ b/lua/dotvim/extra/fswatch.lua @@ -57,8 +57,10 @@ local function fswatch(path, opts, callback) path, }, { stdout = function(_, data) - for line in vim.gsplit(data, "\n", { plain = true, trimempty = true }) do - fswatch_output_handler(line, opts, callback) + if data ~= nil then + for line in vim.gsplit(data, "\n", { plain = true, trimempty = true }) do + fswatch_output_handler(line, opts, callback) + end end end, }) diff --git a/lua/dotvim/init.lua b/lua/dotvim/init.lua index 512f534a..23a803f5 100644 --- a/lua/dotvim/init.lua +++ b/lua/dotvim/init.lua @@ -77,6 +77,7 @@ function M.setup(opts) "dotvim.packages.lsp", "dotvim.packages.editor", "dotvim.packages.ui", + "dotvim.packages.tools", } if vim.uv.os_uname() == "Darwin" then diff --git a/lua/dotvim/packages/tools.lua b/lua/dotvim/packages/tools.lua new file mode 100644 index 00000000..cb6d8329 --- /dev/null +++ b/lua/dotvim/packages/tools.lua @@ -0,0 +1,7 @@ +---@type dora.core.package.PackageOption +return { + name = "dotvim.packages.tools", + deps = {}, + plugins = { + }, +}