Skip to content

Commit

Permalink
nvim: cleanup blink + lbdb setup, still broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwarf committed Jan 6, 2025
1 parent 77c5eab commit bb1987c
Showing 1 changed file with 13 additions and 54 deletions.
67 changes: 13 additions & 54 deletions home/private_dot_config/nvim/lua/plugins/mail.lua
Original file line number Diff line number Diff line change
@@ -1,68 +1,27 @@
-- Loading CMP source in blink using https://github.com/Saghen/blink.compat
-- derived from https://github.com/LazyVim/LazyVim/blob/c1ee761dd88ec71fa9c9eb9706828598e7522c5d/lua/lazyvim/plugins/extras/ai/tabnine.lua#L40
-- FIXME: configuration à la LazyVim
-- Not working
-- https://github.com/Saghen/blink.compat/issues/19
return {

{ "codybuell/cmp-lbdb" },
{
"saghen/blink.cmp",
-- optional = true,
dependencies = {
"codybuell/cmp-lbdb",
-- works
"hrsh7th/cmp-emoji",
-- FIXME: does not work
{
"codybuell/cmp-lbdb",
-- lazy = true,
-- ft = "mail",
-- opts = {
-- mail_header_only = false,
-- },
},
"saghen/blink.compat",
},
opts = {
sources = {
compat = { "lbdb" },
providers = {
lbdb = {
name = "lbdb",
},
},
compat = { "lbdb", "emoji" },
},
},
},
}

-- FIXME: native configuration
-- not working too
-- return {
-- -- add blink.compat
-- -- {
-- -- "saghen/blink.compat",
-- -- lazy = true,
-- -- opts = {},
-- -- },
--
-- {
-- "saghen/blink.cmp",
-- dependencies = {
-- -- add source
-- { "codybuell/cmp-lbdb" },
-- },
-- sources = {
-- completion = {
-- -- remember to enable your providers here
-- enabled_providers = { "lsp", "path", "snippets", "buffer", "lbdb" },
-- },
--
-- providers = {
-- -- create provider
-- lbdb = {
-- name = "lbdb",
-- module = "blink.compat.source",
--
-- -- all blink.cmp source config options work as normal:
-- score_offset = -3,
--
-- -- this table is passed directly to the proxied completion source
-- -- as the `option` field in nvim-cmp's source config
-- --
-- -- this is NOT the same as the opts in a plugin's lazy.nvim spec
-- opts = {},
-- },
-- },
-- },
-- },
-- }

0 comments on commit bb1987c

Please sign in to comment.