feat: eye candy for blink-cmp

This commit is contained in:
Youwen Wu 2024-12-28 21:17:01 -08:00
parent 19c4d0c7fc
commit 6487a7a30f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -4,27 +4,35 @@ return {
after = function() after = function()
require("blink.cmp").setup({ require("blink.cmp").setup({
keymap = { preset = "default" }, keymap = { preset = "default" },
appearance = { appearance = {
use_nvim_cmp_as_default = true, use_nvim_cmp_as_default = true,
nerd_font_variant = "normal", nerd_font_variant = "normal",
}, },
sources = {},
sources = {
default = { "lsp", "path", "snippets", "buffer" },
},
completion = { completion = {
menu = { border = "single" }, menu = {
border = "rounded",
draw = {
columns = {
{ "kind_icon", "kind" },
{ "label", "label_description", gap = 2 },
},
treesitter = { "lsp" },
},
},
documentation = { documentation = {
auto_show = true, auto_show = true,
auto_show_delay_ms = 500, auto_show_delay_ms = 500,
update_delay_ms = 50, update_delay_ms = 50,
treesitter_highlighting = true, treesitter_highlighting = true,
window = { border = "single" }, window = { border = "rounded" },
}, },
}, },
signature = { window = { border = "single" } }, signature = {
fuzzy = { prebuilt_binaries = { force_version = "" } }, window = { border = "rounded" },
enabled = true,
},
fuzzy = { prebuilt_binaries = { download = false } },
}) })
end, end,
} }