lsp: don't invoke vim.notify on sigterm of language server

This commit is contained in:
Michael Lingelbach 2021-03-04 13:50:35 -08:00
parent c50b737d6f
commit 58be81d645

View File

@ -542,7 +542,7 @@ function lsp.start_client(config)
client_ids[client_id] = nil
end
if code ~= 0 or signal ~= 0 then
if code ~= 0 or (signal ~= 0 and signal ~= 15) then
local msg = string.format("Client %s quit with exit code %s and signal %s", client_id, code, signal)
vim.schedule(function()
vim.notify(msg, vim.log.levels.WARN)