mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(supermaven): blink.cmp integration (#4941)
## Description Supermaven completion now works with the latest release of blink.cmp and blink.compat. I'll also take a look at the other ai extras soon. ~A draft for now, until some issues with ghost text are resolved, see https://github.com/Saghen/blink.cmp/issues/257. Alternatively, enabling the supermaven extra could disable ghost text.~ ## Screenshots  ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
03e203bfbe
commit
d71471151b
1 changed files with 5 additions and 24 deletions
|
@ -44,38 +44,19 @@ return {
|
||||||
},
|
},
|
||||||
|
|
||||||
-- blink.cmp integration
|
-- blink.cmp integration
|
||||||
--
|
|
||||||
-- FIXME: this currently doesn't work properly
|
|
||||||
-- {
|
|
||||||
-- "saghen/blink.cmp",
|
|
||||||
-- optional = true,
|
|
||||||
-- opts = {
|
|
||||||
-- sources = {
|
|
||||||
-- compat = vim.g.ai_cmp and { "supermaven" } or nil,
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- dependencies = {
|
|
||||||
-- "supermaven-nvim",
|
|
||||||
-- vim.g.ai_cmp and "saghen/blink.compat" or nil,
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
--
|
|
||||||
-- Disabble cmp integration for now
|
|
||||||
{
|
{
|
||||||
"saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
optional = true,
|
optional = true,
|
||||||
---@module 'blink.cmp'
|
---@module 'blink.cmp'
|
||||||
---@type blink.cmp.Config
|
---@type blink.cmp.Config
|
||||||
opts = {
|
opts = {
|
||||||
completion = { ghost_text = { enabled = false } },
|
sources = {
|
||||||
|
compat = vim.g.ai_cmp and { "supermaven" } or nil,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
"supermaven-nvim",
|
||||||
"supermaven-nvim",
|
vim.g.ai_cmp and "saghen/blink.compat" or nil,
|
||||||
opts = {
|
|
||||||
disable_inline_completion = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue