diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-10 22:25:42 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-10 22:25:42 +0100 |
commit | 3995ebcdbd252927840ac4e2a81e881d4a98adce (patch) | |
tree | 162ec16988dfba9f1b45c9d1914681a32aded0b4 | |
parent | 023b843f9ca248cb5712987245b6b1db94b723e7 (diff) |
Add lsp sources to cmp
-rw-r--r-- | lua/plugins/configs/cmp.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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" }, |