feat(picker): added new icons picker for nerd fonts and emoji. Closes #703

This commit is contained in:
Folke Lemaitre 2025-01-23 10:51:17 +01:00
parent 570d2191d5
commit 97898e910d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 138 additions and 2 deletions

View file

@ -64,10 +64,11 @@ function M.text(item, keys)
return buffer:get()
end
---@param text string
---@param text? string
---@param width number
---@param opts? {align?: "left" | "right" | "center", truncate?: boolean}
function M.align(text, width, opts)
text = text or ""
opts = opts or {}
opts.align = opts.align or "left"
local tw = vim.api.nvim_strwidth(text)