From 3995ebcdbd252927840ac4e2a81e881d4a98adce Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 10 Jan 2022 22:25:42 +0100 Subject: Add lsp sources to cmp --- lua/plugins/configs/cmp.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/plugins') diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index 0082203..27114ca 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -101,6 +101,8 @@ cmp.setup({ vim_item.kind = string.format("%s", kind_icons[vim_item.kind]) -- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind vim_item.menu = ({ + nvim_lsp = "[LSP]", + nvim_lua = "[NVIM_LUA]", luasnip = "[Snippet]", buffer = "[Buffer]", path = "[Path]", @@ -110,6 +112,8 @@ cmp.setup({ }, -- TODO: check out more sources sources = { + { name = "nvim_lsp" }, + { name = "nvim_lua" }, { name = "luasnip" }, { name = "buffer" }, { name = "path" }, -- cgit v1.2.3-70-g09d2