~gpanders/dotfiles

c14a6e008d582ceeaf7dedc03edc888719e87c0b — Gregory Anders 2 months ago 664a7b5
nvim: move packer to plugin/ directory
2 files changed, 70 insertions(+), 66 deletions(-)

D .config/nvim/lua/plugins.lua
M .config/nvim/plugin/packer.vim
D .config/nvim/lua/plugins.lua => .config/nvim/lua/plugins.lua +0 -62
@@ 1,62 0,0 @@
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'

if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
    vim.fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
end

return require('packer').startup(function(use)
    use 'wbthomason/packer.nvim'

    use 'gpanders/vim-medieval'

    use 'gpanders/vim-oldfiles'

    use 'gpanders/editorconfig.nvim'

    use 'tpope/vim-surround'

    use 'tpope/vim-repeat'

    use 'tpope/vim-commentary'

    use 'tpope/vim-rsi'

    use { 'tpope/vim-scriptease', opt = true }

    use 'tpope/vim-fugitive'

    use 'tpope/vim-sleuth'

    use 'tpope/vim-obsession'

    use 'justinmk/vim-dirvish'

    use 'junegunn/vim-easy-align'

    use 'lewis6991/gitsigns.nvim'

    use 'dense-analysis/ale'

    use 'ludovicchabant/vim-gutentags'

    use 'gpanders/vim-markdown'

    use 'gpanders/vim-scdoc'

    use { 'neovim/nvim-lspconfig', opt = true }

    use { 'hrsh7th/nvim-compe', opt = true }

    use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }

    use 'nvim-treesitter/nvim-treesitter-refactor'

    use { 'nvim-treesitter/playground', opt = true }

    use 'nvim-lua/popup.nvim'

    use 'nvim-lua/plenary.nvim'

    use { 'nvim-telescope/telescope.nvim', opt = true }

end)

M .config/nvim/plugin/packer.vim => .config/nvim/plugin/packer.vim +70 -4
@@ 1,5 1,71 @@
if exists(':PackerUpdate') == 2
    finish
endif
function! s:update()
    delcommand PackerUpdate
lua <<
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"

command PackerUpdate exec 'lua require("plugins")' | PackerUpdate
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
    vim.fn.system({"git", "clone", "https://github.com/wbthomason/packer.nvim", install_path})
end

require("packer").startup(function(use)
    use "wbthomason/packer.nvim"

    use "gpanders/vim-medieval"

    use "gpanders/vim-oldfiles"

    use "gpanders/editorconfig.nvim"

    use "gpanders/vim-surround"

    use "tpope/vim-commentary"

    use "tpope/vim-repeat"

    use "tpope/vim-rsi"

    use { "tpope/vim-scriptease", opt = true }

    use "tpope/vim-fugitive"

    use "tpope/vim-sleuth"

    use "tpope/vim-obsession"

    use "justinmk/vim-dirvish"

    use "junegunn/vim-easy-align"

    use "lewis6991/gitsigns.nvim"

    use "dense-analysis/ale"

    use "ludovicchabant/vim-gutentags"

    use "gpanders/vim-markdown"

    use "gpanders/vim-scdoc"

    use { "neovim/nvim-lspconfig", opt = true }

    use { "hrsh7th/nvim-compe", opt = true }

    use { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" }

    use "nvim-treesitter/nvim-treesitter-refactor"

    use { "nvim-treesitter/playground", opt = true }

    use "nvim-lua/popup.nvim"

    use "nvim-lua/plenary.nvim"

    use { "nvim-telescope/telescope.nvim", opt = true }

end)

require("packer").update()
.
endfunction

command PackerUpdate call s:update()