diff options
| author | JackJ30 <jackqjamison@gmail.com> | 2025-05-27 21:45:51 -0400 |
|---|---|---|
| committer | JackJ30 <jackqjamison@gmail.com> | 2025-05-27 21:45:51 -0400 |
| commit | 80351c2cde0845c894466dd83b0554e4f96cbcb0 (patch) | |
| tree | 8783146cc0319df20e3edb85615c09e6d1b8a3e0 /.config/nvim/lua/user/plugins/cmp.lua | |
| parent | 41b74f66946213b6efc4134a514fd5ab76b03353 (diff) | |
new nvim
Diffstat (limited to '.config/nvim/lua/user/plugins/cmp.lua')
| -rw-r--r-- | .config/nvim/lua/user/plugins/cmp.lua | 24 |
1 files changed, 24 insertions, 0 deletions
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, +} + |
