From 57eb84b7008b410a51ba75703353056e0aae6183 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 3 Sep 2023 19:15:40 +0200 Subject: [PATCH] add path & buffer cmp sources --- .gitignore | 1 + init.lua | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e033bc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +lazy-lock.json diff --git a/init.lua b/init.lua index ef233c2..b132f42 100644 --- a/init.lua +++ b/init.lua @@ -107,10 +107,13 @@ require('lazy').setup({ -- Adds a number of user-friendly snippets 'rafamadriz/friendly-snippets', + -- Adds buffer source 'hrsh7th/cmp-buffer', + -- + -- Adds path source 'hrsh7th/cmp-path', + 'hrsh7th/cmp-nvim-lua', - "rafamadriz/friendly-snippets" }, }, @@ -556,6 +559,8 @@ cmp.setup { sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, + { name = 'buffer' }, + { name = 'path' }, }, }