feat(nvim-code-completion): Updates to blink.nvim config

- Bump version to "1.*"
- More community plugins added: emoji, conventional-commits
- <C-CR> to accept and NOT select_and_accept
- Rounded border
- Quickly show documentations
- Commandline completion configuration
- Codeium plugin configured through blink.compat
- File based completion settings for: sql, markdown & gitcommit
This commit is contained in:
Pratik Tripathy
2025-03-31 11:32:55 +05:30
parent cb737a5573
commit 29a2f349d7
2 changed files with 85 additions and 43 deletions

View File

@@ -1,38 +1,21 @@
return {
{
"saghen/blink.compat",
lazy = true,
opts = {},
},
-- codeium
{
"Exafunction/codeium.nvim",
cond = require("config.util").is_not_vscode(),
dependencies = {
"nvim-lua/plenary.nvim",
{
"saghen/blink.compat",
opts = function()
-- Do NOT use if codeium is not loaded
local codeium_loaded, _ = pcall(require, "codeium")
if not codeium_loaded then
return {}
end
return {
enable_events = true,
sources = {
providers = {
codeium = {
name = "codeium",
module = "blink.compat.source",
score_offset = 1200,
async = true,
},
},
},
}
end,
},
},
dependencies = { "nvim-lua/plenary.nvim" },
cmd = "Codeium",
build = ":Codeium Auth",
event = "InsertEnter",
opts = {
-- TODO: Get all sources.default on blink.nvim and add "codeium" to the list
-- TODO: Get all sources.providers registered on blink.nvim and append "codeium" to it here
enable_cmp_source = true,
virtual_text = {
enabled = false,