feat: show the file position lualine was missing - #185
Merged
Conversation
jiminu
force-pushed
the
feat/lualine-progress
branch
from
September 9, 2026 06:57
dc1b8d4 to
c5e28a9
Compare
options.lua turns 'ruler' off and hands the cursor position to lualine,
but only half of it was restored. Vim's ruler showed the line and column
together with the relative position in the file (`:h 'ruler'`):
Top first line is visible
Bot last line is visible
All first and last line are visible
45% relative position in the file
lualine's "location" component renders `line:col`, and "progress"
renders the Top/Bot/45% half. Adding it restores what disabling 'ruler'
removed, which matters most in the long files where the line number
alone says the least.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PGC35LZyrDE74wuQeNQ3oT
jiminu
force-pushed
the
feat/lualine-progress
branch
from
September 9, 2026 06:57
c5e28a9 to
54944da
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
options.luaturnsruleroff and hands the cursor position to lualine,but only half of it was restored.
:h 'ruler'describes what the built-in display covered:lualine splits those two halves across separate components:
lualine_xcarried"location"only, so the relative position was lostwhen
rulerwas disabled. This adds"progress"next to it.The two do not overlap:
locationis the absolute position,progressthe position within the file — the information the line number alone says
least about in a long file.
rulerstays off, so nothing is displayedtwice.
No test accompanies this. The existing appearance assertions in
editor_workflow.luaeach guard a constraint — no dependency onnvim-web-devicons, glyphs that work without a Nerd Font, no dependency on
a personally installed
fd. A statusline component has no suchconstraint behind it, so an assertion would only restate the
configuration and would break on any future reordering of the section.
bash tests/neovim_config_test.bash— 11 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01PGC35LZyrDE74wuQeNQ3oT