summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/nvim-cmp.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-24 11:36:39 +0300
committerKyren223 <Kyren223@proton.me>2025-04-24 11:36:39 +0300
commit6bef8f32b19778fdfe52f0eb39719425508dcc7b (patch)
treef293141ed7e8676b76bb06c07a0fa9472b10e2ac /.config/nvim/lua/plugins/nvim-cmp.lua
parentdbd9a6fdd0c44e26b200fb706aacd120a2e09c47 (diff)
Refactored nvim config to make it easier and less insanely nested
Diffstat (limited to '.config/nvim/lua/plugins/nvim-cmp.lua')
-rw-r--r--.config/nvim/lua/plugins/nvim-cmp.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/nvim-cmp.lua b/.config/nvim/lua/plugins/nvim-cmp.lua
new file mode 100644
index 0000000..221c756
--- /dev/null
+++ b/.config/nvim/lua/plugins/nvim-cmp.lua
@@ -0,0 +1,14 @@
+return {
+ 'hrsh7th/nvim-cmp',
+ event = 'InsertEnter',
+ dependencies = {
+ 'onsails/lspkind.nvim', -- icons for completion type
+ 'hrsh7th/cmp-path', -- complete filepaths
+ 'hrsh7th/cmp-nvim-lsp', -- lsp source for nvim-cmp
+ 'saadparwaiz1/cmp_luasnip', -- snippets source for nvim-cmp
+ { 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' }, -- snippets plugin
+ },
+ config = function()
+ require('cmp_helper')
+ end,
+}