2024-05-24 16:07:28 +03:00
|
|
|
return {
|
|
|
|
{
|
2024-12-20 01:06:09 +02:00
|
|
|
"saghen/blink.cmp",
|
|
|
|
dependencies = "rafamadriz/friendly-snippets",
|
|
|
|
version = "v0.*",
|
2024-12-25 01:11:07 +02:00
|
|
|
---@module 'blink.cmp'
|
|
|
|
---@type blink.cmp.Config
|
2024-12-20 01:06:09 +02:00
|
|
|
opts = {
|
2024-12-25 01:11:07 +02:00
|
|
|
enabled = function()
|
|
|
|
return not vim.tbl_contains({ "markdown" }, vim.bo.filetype)
|
|
|
|
and vim.bo.buftype ~= "prompt"
|
|
|
|
and vim.b.completion ~= false
|
|
|
|
end,
|
|
|
|
|
2024-12-20 01:06:09 +02:00
|
|
|
keymap = { preset = "enter" },
|
2024-05-24 16:07:28 +03:00
|
|
|
|
2024-12-20 01:06:09 +02:00
|
|
|
appearance = {
|
|
|
|
use_nvim_cmp_as_default = true,
|
|
|
|
nerd_font_variant = "mono",
|
|
|
|
},
|
2024-05-24 16:07:28 +03:00
|
|
|
|
2024-12-20 01:06:09 +02:00
|
|
|
signature = { enabled = true },
|
2024-05-24 16:07:28 +03:00
|
|
|
|
2024-12-20 01:06:09 +02:00
|
|
|
completion = {
|
2024-12-25 01:11:07 +02:00
|
|
|
list = {
|
|
|
|
selection = "manual",
|
|
|
|
},
|
|
|
|
accept = {
|
|
|
|
auto_brackets = { enabled = false },
|
|
|
|
},
|
|
|
|
-- ghost_text = {
|
|
|
|
-- enabled = true,
|
|
|
|
-- },
|
2024-12-20 01:06:09 +02:00
|
|
|
menu = {
|
|
|
|
draw = {
|
|
|
|
columns = { { "kind_icon" }, { "label", "label_description", gap = 1 }, { "kind" } },
|
2024-05-24 16:07:28 +03:00
|
|
|
},
|
|
|
|
},
|
2024-12-20 01:06:09 +02:00
|
|
|
},
|
|
|
|
},
|
2024-05-24 16:07:28 +03:00
|
|
|
},
|
|
|
|
}
|