diff --git a/lua/libmodal/src/utils/api.lua b/lua/libmodal/src/utils/api.lua index 32508fe..50e8035 100644 --- a/lua/libmodal/src/utils/api.lua +++ b/lua/libmodal/src/utils/api.lua @@ -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 --------------------------