summaryrefslogtreecommitdiff
path: root/lua/user/cmp.lua
diff options
context:
space:
mode:
authorlouie <louie@example.com>2022-06-24 20:32:43 -0700
committerlouie <louie@example.com>2022-06-24 20:32:43 -0700
commit6b06898e35d9557ca83e1d4ff4aa048296ca5120 (patch)
tree536a659c852e5d6c3efec9fde5e3b0e403d955fd /lua/user/cmp.lua
parentdb332bc52f229f2f66a71107bfbd38f72d81a3cd (diff)
Added lsp
Diffstat (limited to 'lua/user/cmp.lua')
-rw-r--r--lua/user/cmp.lua4
1 files changed, 4 insertions, 0 deletions
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" },