|
|
|
@ -74,10 +74,8 @@ end
|
|
|
|
|
* `hlTables` => the tables to echo with highlights.
|
|
|
|
|
]]
|
|
|
|
|
---------------------------------
|
|
|
|
|
local resetHighlight = Entry.new('None', '')
|
|
|
|
|
function api.nvim_lecho(hlTables)
|
|
|
|
|
api.nvim_redraw()
|
|
|
|
|
hlTables[#hlTables + 1] = resetHighlight
|
|
|
|
|
for _, hlTable in ipairs(hlTables) do
|
|
|
|
|
-- `:echohl` the hlgroup and then `:echon` the string
|
|
|
|
|
api.nvim_command(
|
|
|
|
@ -85,6 +83,7 @@ function api.nvim_lecho(hlTables)
|
|
|
|
|
.. " | echon '" .. tostring(hlTable['str']) .. "'"
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
api.nvim_command('echohl None')
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|