From 3793a88c677b27a66f551c2d8e76a21d64cbc39c Mon Sep 17 00:00:00 2001 From: zoomiti Date: Thu, 18 Aug 2022 02:51:55 -0400 Subject: [PATCH] Added new cmp sources in nvim --- .config/nvim/init.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 4d5b366..ebb500c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -54,6 +54,9 @@ if has("nvim") Plug 'neovim/nvim-lspconfig' Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/nvim-cmp' " For LSP completion +Plug 'hrsh7th/cmp-path' +Plug 'hrsh7th/cmp-buffer' +Plug 'hrsh7th/cmp-nvim-lua' " Debugging Plug 'mfussenegger/nvim-dap' @@ -355,12 +358,14 @@ if has("nvim") }, sources = cmp.config.sources({ { name = 'nvim_lsp' }, + { name = 'nvim_lua' }, -- { name = 'vsnip' }, -- For vsnip users. -- { name = 'luasnip' }, -- For luasnip users. { name = 'ultisnips' }, -- For ultisnips users. -- { name = 'snippy' }, -- For snippy users. + { name = 'path' }, }, { - { name = 'buffer' }, + { name = 'buffer', keyword_length = 5}, }) })