From 0df7a6bfc8faef44a4b961ae4552eeed90658adf Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Sun, 16 Jul 2023 13:27:03 +0530 Subject: [PATCH] refactor: minor styling changes --- lua/plugins/coding.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 4c34b55..0507a94 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -65,10 +65,16 @@ return { mode = "symbol_text", maxwidth = 150, ellipsis_char = "...", + before = function(entry, vim_item) + vim_item.menu = ({ + nvim_lsp = "[LSP]", + buffer = "[Buffer]", + })[entry.source.name] + return vim_item + end, }), }, completion = { - keyword_length = 3, completeopt = "menu,menuone,noinsert", }, snippet = { @@ -86,8 +92,8 @@ return { sources = cmp.config.sources({ { name = "nvim_lsp" }, { name = "nvim_lsp_signature_help" }, - { name = "luasnip", keyword_length = 3 }, - { name = "buffer", keyword_length = 5 }, + { name = "luasnip" }, + { name = "buffer" }, { name = "path" }, }), window = {