From 9e84c061affbcd7535c78e43322c82ea6707cc5a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 7 Nov 2022 15:32:06 +0000 Subject: [PATCH] Move packer output to popup window --- lua/plugins.lua | 243 +++++++++++++++++++++++++----------------------- 1 file changed, 126 insertions(+), 117 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 64d6014e..b080ae92 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -5,122 +5,131 @@ vim.cmd([[ augroup end ]]) -require('packer').startup(function(use) - use 'wbthomason/packer.nvim' - use { - 'rcarriga/nvim-notify', - config = function () - vim.notify = require("notify") - end - } - use 'kyazdani42/nvim-web-devicons' - use 'nvim-lua/plenary.nvim' - use 'christoomey/vim-tmux-navigator' - use 'neovim/nvim-lspconfig' - use 'hrsh7th/cmp-nvim-lsp' - use 'hrsh7th/cmp-buffer' - use 'hrsh7th/cmp-path' - use 'hrsh7th/cmp-cmdline' - use 'hrsh7th/cmp-nvim-lua' - use 'hrsh7th/nvim-cmp' - use 'hrsh7th/cmp-vsnip' - use 'hrsh7th/vim-vsnip' - use { - 'EdenEast/nightfox.nvim', - config = function () - require 'config_plugins.config_nightfox' - end - } - use { - 'nvim-treesitter/nvim-treesitter', - run = ':TSUpdate', - config = function () - require 'config_plugins.config_treesitter' - end - } - use { - 'j-hui/fidget.nvim', - config = function () - require('fidget').setup() - end - } - use { - 'stevearc/aerial.nvim', - branch = 'nvim-0.5', - config = function () - require 'config_plugins.config_aerial' - end - } - use { - 'tpope/vim-fugitive', - opt = true, - cmd = {'G', 'Git'} - } - use { - 'https://github.com/lewis6991/gitsigns.nvim.git', - tag = 'release', - config = function () - require 'config_plugins.config_gitsigns' - end - } - use { - 'nvim-lualine/lualine.nvim', - config = function () - require 'config_plugins.config_lualine' - end - } - use { - 'kyazdani42/nvim-tree.lua', - config = function() - require 'config_plugins.config_nvim-tree' - end - } - use { - 'akinsho/toggleterm.nvim', - tag = 'v2.*', - config = function () - require 'config_plugins.config_toggleterm' - end - } - use { - 'nvim-telescope/telescope.nvim', - branch = '0.1.x', - requires = { - {'nvim-lua/plenary.nvim'} +require('packer').startup { + function(use) + use 'wbthomason/packer.nvim' + use { + 'rcarriga/nvim-notify', + config = function () + vim.notify = require("notify") + end + } + use 'kyazdani42/nvim-web-devicons' + use 'nvim-lua/plenary.nvim' + use 'christoomey/vim-tmux-navigator' + use 'neovim/nvim-lspconfig' + use 'hrsh7th/cmp-nvim-lsp' + use 'hrsh7th/cmp-buffer' + use 'hrsh7th/cmp-path' + use 'hrsh7th/cmp-cmdline' + use 'hrsh7th/cmp-nvim-lua' + use 'hrsh7th/nvim-cmp' + use 'hrsh7th/cmp-vsnip' + use 'hrsh7th/vim-vsnip' + use { + 'EdenEast/nightfox.nvim', + config = function () + require 'config_plugins.config_nightfox' + end + } + use { + 'nvim-treesitter/nvim-treesitter', + run = ':TSUpdate', + config = function () + require 'config_plugins.config_treesitter' + end + } + use { + 'j-hui/fidget.nvim', + config = function () + require('fidget').setup() + end + } + use { + 'stevearc/aerial.nvim', + branch = 'nvim-0.5', + config = function () + require 'config_plugins.config_aerial' + end + } + use { + 'tpope/vim-fugitive', + opt = true, + cmd = {'G', 'Git'} + } + use { + 'https://github.com/lewis6991/gitsigns.nvim.git', + tag = 'release', + config = function () + require 'config_plugins.config_gitsigns' + end + } + use { + 'nvim-lualine/lualine.nvim', + config = function () + require 'config_plugins.config_lualine' + end + } + use { + 'kyazdani42/nvim-tree.lua', + config = function() + require 'config_plugins.config_nvim-tree' + end + } + use { + 'akinsho/toggleterm.nvim', + tag = 'v2.*', + config = function () + require 'config_plugins.config_toggleterm' + end + } + use { + 'nvim-telescope/telescope.nvim', + branch = '0.1.x', + requires = { + {'nvim-lua/plenary.nvim'} + }, + config = function () + require 'config_plugins.config_telescope' + end + } + use { + 'nvim-telescope/telescope-fzf-native.nvim', + run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' + } + use { + 'michaelb/sniprun', + run = 'bash install.sh', + opt = true, + cmd = {'SnipRun', 'SnipInfo', 'SnipReset'}, + config = function () + require 'config_plugins.config_sniprun' + end + } + use { + 'phaazon/hop.nvim', + config = function () + require('hop').setup() + end + } + use { + 'folke/trouble.nvim', + config = function () + require('trouble').setup() + end + } + use { + "lukas-reineke/indent-blankline.nvim", + config = function () + require('indent_blankline').setup() + end + } + end, + config = { + display = { + open_fn = function () + return require('packer.util').float({ border = 'single' }) + end }, - config = function () - require 'config_plugins.config_telescope' - end } - use { - 'nvim-telescope/telescope-fzf-native.nvim', - run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' - } - use { - 'michaelb/sniprun', - run = 'bash install.sh', - opt = true, - cmd = {'SnipRun', 'SnipInfo', 'SnipReset'}, - config = function () - require 'config_plugins.config_sniprun' - end - } - use { - 'phaazon/hop.nvim', - config = function () - require('hop').setup() - end - } - use { - 'folke/trouble.nvim', - config = function () - require('trouble').setup() - end - } - use { - "lukas-reineke/indent-blankline.nvim", - config = function () - require('indent_blankline').setup() - end - } -end) +}