Commit Graph

11 Commits (18435dc4c5da317f9977a6d1af6cbc4f36b507ff)

Author SHA1 Message Date
etienne-k 18435dc4c5 refactor(statusline): ensure the match is exhaustive 2022-07-05 21:40:34 +02:00
etienne-k f3513a6526 refactor(statusline): rename `buffer` into `parts` 2022-07-05 21:40:34 +02:00
etienne-k 1e9543953d refactor(statusline): make clippy happy again 2022-07-05 21:40:34 +02:00
etienne-k 1ccd1deafe fix(statusline): avoid rendering the left elements twice 2022-07-05 21:40:34 +02:00
etienne-k 82120df409 refactor(statusline): avoid intermediate StatusLineObject
Use a more functional approach to obtain render functions and write to
the buffers, and avoid an intermediate StatusLineElement object.
2022-07-05 21:40:34 +02:00
etienne-k 5ecd26fb10 refactor(statusline): make clippy happy 2022-07-05 21:39:29 +02:00
etienne-k 90db789577 feat(statusline): make the status line configurable 2022-07-05 21:35:51 +02:00
etienne-k c01e5aa822 refactor(statusline): implement render_diagnostics()
This avoid cluttering the render() function and will simplify
configurability.
2022-07-05 21:32:06 +02:00
etienne-k 1b50fbb1eb refactor(statusline): Append elements using a consistent API
This is a preparation for the configurability which is about to be
implemented.
2022-07-05 21:30:54 +02:00
etienne-k 73d6f34861 refactor(statusline): split the statusline implementation into different functions 2022-07-05 21:30:52 +02:00
etienne-k bf691a1a02 refactor(statusline): move the statusline implementation into an own struct 2022-07-05 21:27:34 +02:00