aboutsummaryrefslogtreecommitdiff
path: root/lua/cmp1.lua
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-01-05 08:57:32 +0100
committerAleksa Vučković <aleksav013@gmail.com>2022-01-05 08:57:32 +0100
commit2a5f4d72d21d495408a52a2cad271b1e5775967b (patch)
treec1bc1aa2844d32fd89e125db8285ceded2b4187d /lua/cmp1.lua
parent0eb2af20164f3281b9981386d7ac03713e2f3e01 (diff)
cmp_luasnip not working
Diffstat (limited to 'lua/cmp1.lua')
-rw-r--r--lua/cmp1.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/cmp1.lua b/lua/cmp1.lua
new file mode 100644
index 0000000..092402c
--- /dev/null
+++ b/lua/cmp1.lua
@@ -0,0 +1,14 @@
+ config = function ()
+ require'cmp'.setup {
+ snippet = {
+ expand = function(args)
+ require'luasnip'.lsp_expand(args.body)
+ end
+ },
+
+ sources = {
+ { name = 'luasnip' },
+ -- more sources
+ },
+ }
+ end