Skip to content

Commit

Permalink
use importer
Browse files Browse the repository at this point in the history
  • Loading branch information
ljesparis committed Mar 14, 2023
1 parent 2386d5d commit c46be05
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions lua/ljesparis/plugins.lua
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit c46be05

Please sign in to comment.