]>
git.madduck.net Git - etc/lazyvim.git/blobdiff - .config/lazyvim/lua/plugins/blink-compat-lbdb.lua
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
+ "codybuell/cmp-lbdb",
+ version = "1.*",
dependencies = {
{ "saghen/blink.compat" },
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,