From 6487a7a30fb7f2406f5165d893fc8e70653c9c3c Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 28 Dec 2024 21:17:01 -0800 Subject: [PATCH] feat: eye candy for blink-cmp --- lua/plugins/blink-cmp.lua | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/lua/plugins/blink-cmp.lua b/lua/plugins/blink-cmp.lua index 576113e..3d2048a 100644 --- a/lua/plugins/blink-cmp.lua +++ b/lua/plugins/blink-cmp.lua @@ -4,27 +4,35 @@ return { after = function() require("blink.cmp").setup({ keymap = { preset = "default" }, - appearance = { use_nvim_cmp_as_default = true, nerd_font_variant = "normal", }, - - sources = { - default = { "lsp", "path", "snippets", "buffer" }, - }, + sources = {}, completion = { - menu = { border = "single" }, + menu = { + border = "rounded", + draw = { + columns = { + { "kind_icon", "kind" }, + { "label", "label_description", gap = 2 }, + }, + treesitter = { "lsp" }, + }, + }, documentation = { auto_show = true, auto_show_delay_ms = 500, update_delay_ms = 50, treesitter_highlighting = true, - window = { border = "single" }, + window = { border = "rounded" }, }, }, - signature = { window = { border = "single" } }, - fuzzy = { prebuilt_binaries = { force_version = "" } }, + signature = { + window = { border = "rounded" }, + enabled = true, + }, + fuzzy = { prebuilt_binaries = { download = false } }, }) end, }