diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-07-09 17:54:14 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-07-09 17:54:14 +0200 |
| commit | bfcd8ce5955b282c635d4858aa9bb62981ed67a1 (patch) | |
| tree | 2d1f19520036aca0978dd9ad1116c72b6e8eb927 | |
| parent | b646a9f8d67275af0baeac1f339a168345c3d1f7 (diff) | |
| download | vis-lspc-bfcd8ce5955b282c635d4858aa9bb62981ed67a1.tar.gz vis-lspc-bfcd8ce5955b282c635d4858aa9bb62981ed67a1.zip | |
Show warning instead of empty diagnostics message
| -rw-r--r-- | init.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -967,7 +967,11 @@ local function lspc_show_diagnostic(ls, win, line) diagnostic.message) end - vis:message(diagnostics_msg) + if diagnostics_msg ~= '' then + vis:message(diagnostics_msg) + else + lspc_warn('No diagnostics available for line: ' .. line) + end end -- vis-lspc commands |
