mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): added new icons
picker for nerd fonts and emoji. Closes #703
This commit is contained in:
parent
570d2191d5
commit
97898e910d
6 changed files with 138 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue