From 9433dbb76263f89621919879c2a204448215d9b1 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Fri, 22 Oct 2021 09:45:26 +0600 Subject: [PATCH] enhance: use virtual column(%v) for location and line no (%p) for progress closes #90 --- lua/lualine/components/location.lua | 2 +- lua/lualine/components/progress.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lualine/components/location.lua b/lua/lualine/components/location.lua index 1ffff54..3c46790 100644 --- a/lua/lualine/components/location.lua +++ b/lua/lualine/components/location.lua @@ -1,7 +1,7 @@ -- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local function location() - return [[%3l:%-2c]] + return '%3l:%-2v' end return location diff --git a/lua/lualine/components/progress.lua b/lua/lualine/components/progress.lua index e4a7054..7946a6c 100644 --- a/lua/lualine/components/progress.lua +++ b/lua/lualine/components/progress.lua @@ -1,7 +1,7 @@ -- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local function progress() - return [[%3P]] + return '%3p%%' end return progress