53 lines
1.2 KiB
Lua
53 lines
1.2 KiB
Lua
return {
|
|
{
|
|
"github/copilot.vim",
|
|
event = "BufRead",
|
|
config = function()
|
|
vim.api.nvim_set_keymap("i", "<C-f>", 'copilot#Accept("\\<CR>")', { expr = true, silent = true })
|
|
end,
|
|
},
|
|
|
|
{
|
|
"Saghen/blink.cmp",
|
|
opts = {
|
|
completion = {
|
|
list = { selection = { preselect = true, auto_insert = true } },
|
|
ghost_text = {
|
|
enabled = false,
|
|
},
|
|
menu = {
|
|
auto_show = function(ctx)
|
|
return ctx.mode ~= "cmdline"
|
|
end,
|
|
draw = {
|
|
columns = {
|
|
{ "kind_icon", "label", gap = 1 },
|
|
{ "kind" },
|
|
},
|
|
components = {
|
|
kind = {
|
|
highlight = function(ctx)
|
|
local _, hl, _ = require("mini.icons").get("lsp", ctx.kind)
|
|
return hl
|
|
end,
|
|
},
|
|
|
|
},
|
|
},
|
|
},
|
|
accept = {
|
|
auto_brackets = { enabled = true },
|
|
},
|
|
documentation = {
|
|
auto_show = true,
|
|
auto_show_delay_ms = 0,
|
|
window = {
|
|
border = "rounded",
|
|
winhighlight = "Normal:NormalFloat,FloatBorder:FloatBorder,CursorLine:PmenuSel,Search:None",
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|