Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Choose slightly better names
Browse files Browse the repository at this point in the history
thisisrandy committed Nov 21, 2024
1 parent ad0a267 commit 9da4be4
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/lualine/components/location.lua
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@ local M = require('lualine.component'):extend()
function M:update_status()
local line = vim.fn.line('.')
local col = vim.fn.charcol('.')
if self.options.total_lines_in_location then
local total_line = vim.fn.line('$')
return string.format('%3d/%d:%-2d', line, total_line, col)
if self.options.line_total_in_location then
local line_total = vim.fn.line('$')
return string.format('%3d/%d:%-2d', line, line_total, col)
else
return string.format('%3d:%-2d', line, col)
end
2 changes: 1 addition & 1 deletion lua/lualine/config.lua
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ local config = {
tabline = 100,
winbar = 100,
},
total_lines_in_location = false,
line_total_in_location = false,
},
sections = {
lualine_a = { 'mode' },

0 comments on commit 9da4be4

Please sign in to comment.