-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add blink.cmp completion source #264
base: main
Are you sure you want to change the base?
Conversation
Add possibility to enable/disable Codeium completion
simplify Server implementation by using OOP style. Now it's better work with LSPs
7f00866
to
ea31d6d
Compare
Lovely. Can't wait to until this one is merged! |
ea755ec
to
a7e226e
Compare
Updated PR according to changes in v0.8.0 release: https://github.com/Saghen/blink.cmp/tree/v0.8.0 |
Come on Santa! This will look awesome under my tree. |
dc83b7a
to
e72afbc
Compare
e72afbc
to
d0431b4
Compare
Apparently you can add nvim-cmp sources such as codeium to blink.cmp using blink.compat. Here's the link to blink compact |
maybe something wrong, blink compact not works for me.
|
Set This is my config and it works for me. {
"Exafunction/codeium.nvim",
event = "BufEnter",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
enable_chat = true,
},
}, return {
"saghen/blink.cmp",
dependencies = {
"rafamadriz/friendly-snippets",
"moyiz/blink-emoji.nvim",
"mikavilpas/blink-ripgrep.nvim",
"saghen/blink.compat",
},
version = "*",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = { preset = "enter", cmdline = { preset = "enter" } },
appearance = {
use_nvim_cmp_as_default = true,
-- Set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant = "normal",
},
completion = {
keyword = { range = "full" },
list = {
selection = function(ctx)
return ctx.mode == "cmdline" and "auto_insert" or "preselect"
end,
},
documentation = {
window = { border = "rounded" },
-- auto_show = true,
-- auto_show_delay_ms = 500,
},
menu = {
border = "rounded",
draw = {
columns = {
{ "label", "label_description", gap = 1 },
{ "kind_icon", "kind" },
},
},
},
ghost_text = { enabled = true },
},
-- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend`
sources = {
default = {
"codeium",
"lazydev",
"lsp",
"path",
"snippets",
"buffer",
"ripgrep",
"emoji",
},
providers = {
codeium = {
name = "codeium",
module = "blink.compat.source",
},
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
score_offset = 100,
},
emoji = {
name = "Emoji",
module = "blink-emoji",
},
ripgrep = {
name = "Ripgrep",
module = "blink-ripgrep",
},
},
},
signature = { enabled = true, window = { border = "rounded" } },
},
opts_extend = { "sources.default" },
} In Rust projects, the following error message keeps appearing:
Update: |
@Davenchy 😂 |
but i dont think its working as it dosnt show any suggestions |
No merge yet ? |
add kind_icon
blink.cmp: https://github.com/Saghen/blink.cmp
Created on top of PR #251