recoding process pipline

This commit is contained in:
huyjaky
2025-08-22 17:57:51 +07:00
parent e553f7585d
commit 23bb2a7aa6
14 changed files with 456 additions and 65 deletions

52
lua/plugins/cmps.lua Normal file
View File

@@ -0,0 +1,52 @@
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",
},
},
},
}
}
}