From c46be0523757bc273b8a530c9c701d39f5e4ef02 Mon Sep 17 00:00:00 2001 From: Leonardo Esparis Date: Tue, 14 Mar 2023 22:24:49 +0100 Subject: [PATCH] use importer --- lua/ljesparis/plugins.lua | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/lua/ljesparis/plugins.lua b/lua/ljesparis/plugins.lua index 47984da..e42291b 100644 --- a/lua/ljesparis/plugins.lua +++ b/lua/ljesparis/plugins.lua @@ -1,42 +1,29 @@ --- vim.cmd [[packadd packer.nvim]] - -require('packer').startup(function(use) - -- Package manager +local importer = require("ljesparis.utils"); +importer.require('packer').startup(function(use) use 'wbthomason/packer.nvim' use 'nvim-tree/nvim-web-devicons' use 'folke/tokyonight.nvim' use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) use { 'nvim-telescope/telescope.nvim', tag = '0.1.0', - -- or , branch = '0.1.x', requires = { { 'nvim-lua/plenary.nvim' } } } use { 'VonHeikemen/lsp-zero.nvim', branch = 'v1.x', requires = { - -- LSP Support - { 'neovim/nvim-lspconfig' }, -- Required - { 'williamboman/mason.nvim' }, -- Optional - { 'williamboman/mason-lspconfig.nvim' }, -- Optional + { 'neovim/nvim-lspconfig' }, + { 'williamboman/mason.nvim' }, + { 'williamboman/mason-lspconfig.nvim' }, { 'simrat39/rust-tools.nvim' }, - - -- Autocompletion - { 'hrsh7th/nvim-cmp' }, -- Required - { 'hrsh7th/cmp-nvim-lsp' }, -- Required - { 'hrsh7th/cmp-buffer' }, -- Optional - { 'hrsh7th/cmp-path' }, -- Optional - { 'saadparwaiz1/cmp_luasnip' }, -- Optional - { 'hrsh7th/cmp-nvim-lua' }, -- Optional - - -- Snippets - { 'L3MON4D3/LuaSnip' }, -- Required - { 'rafamadriz/friendly-snippets' }, -- Optional + { 'hrsh7th/nvim-cmp' }, + { 'hrsh7th/cmp-nvim-lsp' }, + { 'hrsh7th/cmp-buffer' }, + { 'hrsh7th/cmp-path' }, + { 'saadparwaiz1/cmp_luasnip' }, + { 'hrsh7th/cmp-nvim-lua' }, + { 'L3MON4D3/LuaSnip' }, + { 'rafamadriz/friendly-snippets' }, } } - - - -- if install_plugins then - -- require('packer').sync() - -- end end)