Is there any source for dev-icons #702
-
Hi, dimtmel/cmp-digraphs do upto digraphs only, is there any alternative for unicode.vim written in lua with nvim-cmp as backend? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's pretty easy to create a source for this, here you go: local devicons = require('nvim-web-devicons')
cmp.register_source('devicons', {
complete = function(self, params, callback)
local items = {}
for _, icon in pairs(devicons.get_icons()) do
table.insert(items, {
label = icon.icon .. ' ' .. icon.name,
insertText = icon.icon,
filterText = icon.name,
})
end
callback({ items = items })
end,
})
Not that I know of any, but this isn't hard to do either - the only thing you really need is a database of all Unicode characters with their names and codepoints, formatted in a way that is easy to read from Lua (JSON, for example). |
Beta Was this translation helpful? Give feedback.
It's pretty easy to create a source for this, here you go:
Not that I know of any, but this isn't hard to do either - the only thing you reall…