diff --git a/home/user/.config/nvim/lua/base/plugins/nvim_cmp.lua b/home/user/.config/nvim/lua/base/plugins/nvim_cmp.lua index b191d29..5b3eaf6 100644 --- a/home/user/.config/nvim/lua/base/plugins/nvim_cmp.lua +++ b/home/user/.config/nvim/lua/base/plugins/nvim_cmp.lua @@ -56,23 +56,13 @@ local function setup_cmp() end return { - { - 'hrsh7th/nvim-cmp', - dependencies = { - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - "hrsh7th/cmp-cmdline", - 'saadparwaiz1/cmp_luasnip', - 'hrsh7th/cmp-nvim-lsp', - }, - config = setup_cmp, - }, - { - 'neovim/nvim-lspconfig', - }, { 'L3MON4D3/LuaSnip', - dependencies = 'hrsh7th/nvim-cmp', + build = "make install_jsregexp", + dependencies = { + 'hrsh7th/nvim-cmp', + 'honza/vim-snippets', + }, config = function() local ls = require("luasnip") @@ -97,6 +87,17 @@ return { end }, { - 'honza/vim-snippets' + 'hrsh7th/nvim-cmp', + dependencies = { + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "hrsh7th/cmp-cmdline", + 'saadparwaiz1/cmp_luasnip', + 'hrsh7th/cmp-nvim-lsp', + }, + config = setup_cmp, + }, + { + 'neovim/nvim-lspconfig', }, }