.dotfiles/.config/nvim/lua/nvwynd/plugins/completion.lua

43 lines
836 B
Lua

return {
{
"saghen/blink.cmp",
dependencies = "rafamadriz/friendly-snippets",
version = "v0.*",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
enabled = function()
return not vim.tbl_contains({ "markdown" }, vim.bo.filetype)
and vim.bo.buftype ~= "prompt"
and vim.b.completion ~= false
end,
keymap = { preset = "enter" },
appearance = {
use_nvim_cmp_as_default = true,
nerd_font_variant = "mono",
},
signature = { enabled = true },
completion = {
list = {
selection = "manual",
},
accept = {
auto_brackets = { enabled = false },
},
-- ghost_text = {
-- enabled = true,
-- },
menu = {
draw = {
columns = { { "kind_icon" }, { "label", "label_description", gap = 1 }, { "kind" } },
},
},
},
},
},
}