Make column/line chunk match
This commit is contained in:
parent
e64316e336
commit
7b17b794f6
@ -60,6 +60,9 @@ local function get_mode()
|
|||||||
return current_mode.name
|
return current_mode.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Display cusor line/total and column
|
||||||
|
local position = '# ☰ %l/%L %2c '
|
||||||
|
|
||||||
-- Construct a statusline for special buffer types.
|
-- Construct a statusline for special buffer types.
|
||||||
local function special(group, name, title)
|
local function special(group, name, title)
|
||||||
-- Display current mode with dynamic highlights.
|
-- Display current mode with dynamic highlights.
|
||||||
@ -67,7 +70,7 @@ local function special(group, name, title)
|
|||||||
-- Display filename with dark highlights.
|
-- Display filename with dark highlights.
|
||||||
line = line .. '%#StatusLineDark# ' .. title
|
line = line .. '%#StatusLineDark# ' .. title
|
||||||
-- Display current/total lines and column with dynamic highlights.
|
-- Display current/total lines and column with dynamic highlights.
|
||||||
line = line .. '%=' .. '%#' .. group .. '# ☰%l/%L ·%2c '
|
line = line .. '%=' .. '%#' .. group .. position
|
||||||
-- Combine the elements into a single string to be evaluated.
|
-- Combine the elements into a single string to be evaluated.
|
||||||
return line
|
return line
|
||||||
end
|
end
|
||||||
@ -100,7 +103,7 @@ local function generic(group, name, show_lsp)
|
|||||||
'%{&fileencoding ==# "utf-8" ? "" : &fileencoding}' ..
|
'%{&fileencoding ==# "utf-8" ? "" : &fileencoding}' ..
|
||||||
'%{&fileformat ==# "unix" ? "" : "[".&fileformat."]"}' .. ' %)'
|
'%{&fileformat ==# "unix" ? "" : "[".&fileformat."]"}' .. ' %)'
|
||||||
-- Display current/total lines and column with dynamic highlights.
|
-- Display current/total lines and column with dynamic highlights.
|
||||||
line = line .. '%#' .. group .. '# ☰ %l/%L %2c '
|
line = line .. '%#' .. group .. position
|
||||||
-- Combine the elements into a single string to be evaluated.
|
-- Combine the elements into a single string to be evaluated.
|
||||||
return line
|
return line
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user