Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
0e16033e9c | |||
6cf6b0a624 |
@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## [8.4.3](https://github.com/LazyVim/LazyVim/compare/v8.4.2...v8.4.3) (2023-10-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **ui:** always pad to 2 cells for status column icons. Fixes [#1571](https://github.com/LazyVim/LazyVim/issues/1571) ([6cf6b0a](https://github.com/LazyVim/LazyVim/commit/6cf6b0a6241c659113f5646ff64fba7dbf5161b9))
|
||||
|
||||
## [8.4.2](https://github.com/LazyVim/LazyVim/compare/v8.4.1...v8.4.2) (2023-10-03)
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@ end
|
||||
---@param len? number
|
||||
function M.icon(sign, len)
|
||||
sign = sign or {}
|
||||
len = len or 1
|
||||
len = len or 2
|
||||
local text = vim.fn.strcharpart(sign.text or "", 0, len) ---@type string
|
||||
text = text .. string.rep(" ", len - vim.fn.strchars(text))
|
||||
return sign.texthl and ("%#" .. sign.texthl .. "#" .. text .. "%*") or text
|
||||
@ -71,7 +71,7 @@ function M.statuscolumn()
|
||||
M.icon(left),
|
||||
[[%=]],
|
||||
nu .. " ",
|
||||
M.icon(fold or right, 2),
|
||||
M.icon(fold or right),
|
||||
}, "")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user