From 6b06898e35d9557ca83e1d4ff4aa048296ca5120 Mon Sep 17 00:00:00 2001 From: louie Date: Fri, 24 Jun 2022 20:32:43 -0700 Subject: Added lsp --- lua/user/cmp.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/user/cmp.lua') diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua index c36904c..51135e0 100644 --- a/lua/user/cmp.lua +++ b/lua/user/cmp.lua @@ -107,6 +107,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]", @@ -115,6 +117,8 @@ cmp.setup { end, }, sources = { + { name = "nvim_lsp" }, + { name = "nvim_lua" }, { name = "luasnip" }, { name = "buffer" }, { name = "path" }, -- cgit