From 80351c2cde0845c894466dd83b0554e4f96cbcb0 Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Tue, 27 May 2025 21:45:51 -0400 Subject: new nvim --- .config/nvim/lua/user/plugins/cmp.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .config/nvim/lua/user/plugins/cmp.lua (limited to '.config/nvim/lua/user/plugins/cmp.lua') diff --git a/.config/nvim/lua/user/plugins/cmp.lua b/.config/nvim/lua/user/plugins/cmp.lua new file mode 100644 index 0000000..8776310 --- /dev/null +++ b/.config/nvim/lua/user/plugins/cmp.lua @@ -0,0 +1,24 @@ +return { + 'hrsh7th/nvim-cmp', + event = { 'InsertEnter', 'CmdlineEnter' }, + dependencies = { + 'hrsh7th/cmp-buffer', + 'hrsh7th/cmp-cmdline', + 'hrsh7th/cmp-path', + }, + opts = function() + local cmp = require('cmp') + + return { + mapping = cmp.mapping.preset.insert(), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + }, { + { name = 'buffer' }, + }, { + { name = 'path' }, + }) + } + end, +} + -- cgit v1.2.3