martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

disabling status line #1123

Closed d-s-a closed 4 months ago

d-s-a commented 10 months ago

Is there any way to disable rendering of the status line via runtime configuration? If not maybe I'll try to implement this feature.

rnpnr commented 10 months ago

Something like the following maybe:

vis.events.subscribe(vis.events.WIN_STATUS, function(win)
    win:status("")
end)

You also might want to modify your theme to not colour the status bar:

vis.lexers.STYLE_STATUS = ''
vis.lexers.STYLE_STATUS_FOCUSED = ''

See the Lua API documentation for more info.

d-s-a commented 10 months ago

That solution does stop rendering the status line contents, however, the status line itself is still present. I don't think there's a built-in way to disable the status line yet, so I might go ahead and implement that sometime.