mirror of
https://github.com/mfussenegger/nvim-jdtls
synced 2024-09-16 14:34:13 +02:00
truncate status messages when too long (#509)
Co-authored-by: Zach Bodi <zbodi@hubspot.com>
This commit is contained in:
parent
8597d57fb4
commit
dbb8a403e9
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ local URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9+-.]*)://.*'
|
|||
|
||||
|
||||
local status_callback = function(_, result)
|
||||
api.nvim_command(string.format(':echohl Function | echo "%s" | echohl None', result.message))
|
||||
api.nvim_command(string.format(':echohl Function | echo "%s" | echohl None',
|
||||
string.sub(result.message, 1, vim.v.echospace)))
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue