Update autocmd, highlights and help_tags previewers (#332)

Also make vim buffer line configurable
This commit is contained in:
Simon Hauser
2020-12-17 15:58:38 +01:00
committed by GitHub
parent e5233f39c5
commit f078d149a1
6 changed files with 162 additions and 117 deletions

View File

@@ -1,6 +1,7 @@
local entry_display = {}
local function truncate(str, len)
str = tostring(str) -- We need to make sure its an actually a string and not a number
-- TODO: This doesn't handle multi byte chars...
if vim.fn.strdisplaywidth(str) > len then
str = str:sub(1, len - 1)