-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvim: cleanup blink + lbdb setup, still broken.
- Loading branch information
Showing
1 changed file
with
13 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {}, | ||
-- }, | ||
-- }, | ||
-- }, | ||
-- }, | ||
-- } |