From 48d9ee83af876ce2f89e6baa7ac332312e14c834 Mon Sep 17 00:00:00 2001 From: Jonas Hahn Date: Sun, 31 Aug 2025 15:28:23 +0200 Subject: [PATCH] Better cmp --- lua/plugins/lsp.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 7c7d4ea..35db86b 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -84,7 +84,18 @@ return { }, config = function() local cmp = require("cmp") + cmp.setup({ + window = { + completion = cmp.config.window.bordered({ + border = "rounded", + scrollbar = false, + }), + documentation = cmp.config.window.bordered({ + border = "rounded", + scrollbar = false, + }), + }, snippet = { expand = function(args) require("luasnip").lsp_expand(args.body) end, }, @@ -98,9 +109,11 @@ return { { name = "nvim_lsp" }, { name = "luasnip" }, }, { - { name = "buffer" }, - { name = "path" }, - }), + { name = "buffer" }, + { name = "path" }, + }), + performance = { max_view_entries = 25 }, + }) end },