X-Git-Url: https://git.madduck.net/etc/lazyvim.git/blobdiff_plain/44699fdbac6c4db8e7a5e2c0143bc420302cffe8..237bd242055fae1c8d9657cb799b49f21dd03464:/.config/lazyvim/lua/plugins/blink-compat-lbdb.lua diff --git a/.config/lazyvim/lua/plugins/blink-compat-lbdb.lua b/.config/lazyvim/lua/plugins/blink-compat-lbdb.lua index 19eee59..9a31659 100644 --- a/.config/lazyvim/lua/plugins/blink-compat-lbdb.lua +++ b/.config/lazyvim/lua/plugins/blink-compat-lbdb.lua @@ -1,29 +1,38 @@ return { { - "saghen/blink.cmp", + "codybuell/cmp-lbdb", + version = "1.*", dependencies = { { "saghen/blink.compat" }, - { "codybuell/cmp-lbdb" }, - }, - version = "1.*", - opts = { - sources = { - default = { "lbdb" }, - providers = { - lbdb = { - name = "lbdb", - module = "blink.compat.source", - score_offset = -3, + { + "saghen/blink.cmp", + opts = { + sources = { + providers = { + lbdb = { + name = "lbdb", + module = "blink.compat.source", + score_offset = -3, - opts = { - filetypes = { - "mail", - }, - blacklist = { - ".*noreply.*", + opts = { + filetypes = { + "mail", + }, + blacklist = { + ".*noreply.*", + }, + mail_header_only = true, + use_quotes = true, + }, + transform_items = function(_, items) + local kind = require("blink.cmp.types").CompletionItemKind.Text + for i = 1, #items do + items[i].kind = kind + items[i].kind_icon = "🪪" + end + return items + end, }, - mail_header_only = true, - use_quotes = true, }, }, },