neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8149bd089e15043576b1e6588babd9c121740f1a
parent 3d2aeec68d6a03a07394eea154447166f6487078
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Sun,  3 Mar 2024 11:54:39 +0000

feat(lsp): report fswatch errors

Resolves #27713

Co-authored-by: Tomasz N <przepompownia@users.noreply.github.com>

Diffstat:
Mruntime/lua/vim/_watch.lua | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/runtime/lua/vim/_watch.lua b/runtime/lua/vim/_watch.lua @@ -283,6 +283,17 @@ function M.fswatch(path, opts, callback) '/.git/', path, }, { + stderr = function(err, data) + if err then + error(err) + end + + if data and #vim.trim(data) > 0 then + vim.schedule(function() + vim.notify('fswatch: ' .. data, vim.log.levels.ERROR) + end) + end + end, stdout = function(err, data) if err then error(err)