Closed PumpedSardines closed 1 year ago
Add a function to see if a buffer is changed or not. Can be used to show an indicator when there are unwritten changes.
Example of using is_changed()
is_changed()
line.wins_in_tab(line.api.get_current_tab()).foreach(function(win) return { line.sep(" ", theme.win, theme.fill), win.buf().is_changed() and "" or "", win.buf_name(), line.sep("", theme.win, theme.fill), hl = theme.win, margin = " ", } end),
I think this is very useful, thank you!
Add a function to see if a buffer is changed or not. Can be used to show an indicator when there are unwritten changes.
Example of using
is_changed()