|
1 |
| -local fn = vim.fn |
| 1 | +local packer = require("packer.loader") |
2 | 2 |
|
3 |
| --- Automatically install packer |
4 |
| -local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" |
5 |
| -if fn.empty(fn.glob(install_path)) > 0 then |
6 |
| - PACKER_BOOTSTRAP = fn.system({ |
7 |
| - "git", |
8 |
| - "clone", |
9 |
| - "--depth", |
10 |
| - "1", |
11 |
| - "https://github.com/wbthomason/packer.nvim", |
12 |
| - install_path, |
13 |
| - }) |
14 |
| - print("Installing packer close and reopen Neovim...") |
15 |
| - vim.cmd([[packadd packer.nvim]]) |
16 |
| -end |
17 |
| - |
18 |
| --- Autocommand that reloads neovim whenever you save the plugins.lua file |
19 |
| -vim.cmd([[ |
20 |
| - augroup packer_user_config |
21 |
| - autocmd! |
22 |
| - autocmd BufWritePost plugins.lua source <afile> | PackerSync |
23 |
| - augroup end |
24 |
| -]]) |
25 |
| - |
26 |
| --- Use a protected call so we don't error out on first use |
27 |
| -local status_ok, packer = pcall(require, "packer") |
28 |
| -if not status_ok then |
29 |
| - return |
30 |
| -end |
31 |
| - |
32 |
| --- Have packer use a popup window |
33 |
| -packer.init({ |
34 |
| - display = { |
35 |
| - open_fn = function() |
36 |
| - return require("packer.util").float({ border = "rounded" }) |
37 |
| - end, |
38 |
| - }, |
39 |
| -}) |
40 |
| - |
41 |
| --- Install your plugins here |
42 | 3 | return packer.startup(function(use)
|
43 | 4 | -- TODO should put every plugin config inside packer.config file and for every one I should put readme on it
|
44 |
| - use("wbthomason/packer.nvim") |
45 |
| - use("nvim-lua/plenary.nvim") |
46 |
| - use("nvim-lua/popup.nvim") |
| 5 | + -- fixed until popup plugin |
| 6 | + use(require("packer.config.packer")) |
| 7 | + use(require("packer.config.plenary")) |
| 8 | + use(require("packer.config.popup")) |
47 | 9 | use("tpope/vim-fugitive")
|
48 | 10 | use("yamatsum/nvim-cursorline")
|
49 | 11 | use({ "turbio/bracey.vim", run = "npm install --prefix server" })
|
|
0 commit comments