Move config calls into each package definition
This commit is contained in:
parent
667115842f
commit
40fc713876
131
lua/plugins.lua
131
lua/plugins.lua
|
@ -8,19 +8,10 @@ vim.cmd([[
|
|||
require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
use 'rcarriga/nvim-notify'
|
||||
use 'EdenEast/nightfox.nvim'
|
||||
use 'nvim-lua/plenary.nvim'
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
|
||||
use 'j-hui/fidget.nvim'
|
||||
use {'stevearc/aerial.nvim', branch = 'nvim-0.5'}
|
||||
use {'tpope/vim-fugitive', opt = true, cmd = {'G', 'Git'}}
|
||||
use 'https://github.com/lewis6991/gitsigns.nvim.git'
|
||||
use 'nvim-lualine/lualine.nvim'
|
||||
use 'kyazdani42/nvim-web-devicons'
|
||||
use 'kyazdani42/nvim-tree.lua'
|
||||
use 'nvim-lua/plenary.nvim'
|
||||
use 'christoomey/vim-tmux-navigator'
|
||||
use {'akinsho/toggleterm.nvim', tag = 'v2.*'}
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'hrsh7th/cmp-nvim-lsp'
|
||||
use 'hrsh7th/cmp-buffer'
|
||||
use 'hrsh7th/cmp-path'
|
||||
|
@ -29,25 +20,101 @@ require('packer').startup(function(use)
|
|||
use 'hrsh7th/nvim-cmp'
|
||||
use 'hrsh7th/cmp-vsnip'
|
||||
use 'hrsh7th/vim-vsnip'
|
||||
use {'nvim-telescope/telescope.nvim', branch = '0.1.x', requires = { {'nvim-lua/plenary.nvim'} }}
|
||||
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'}
|
||||
use 'phaazon/hop.nvim'
|
||||
use 'folke/trouble.nvim'
|
||||
use "lukas-reineke/indent-blankline.nvim"
|
||||
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',
|
||||
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',
|
||||
opt = true,
|
||||
cmd = {'NvimTreeToggle', 'NvimTreeFindFile'},
|
||||
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',
|
||||
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)
|
||||
|
||||
require 'config_plugins.config_aerial'
|
||||
require 'config_plugins.config_gitsigns'
|
||||
require 'config_plugins.config_lualine'
|
||||
require 'config_plugins.config_nightfox'
|
||||
require 'config_plugins.config_nvim-tree'
|
||||
require 'config_plugins.config_sniprun'
|
||||
require 'config_plugins.config_telescope'
|
||||
require 'config_plugins.config_toggleterm'
|
||||
require 'config_plugins.config_treesitter'
|
||||
|
||||
require('trouble').setup()
|
||||
require('fidget').setup()
|
||||
require('hop').setup()
|
||||
require('indent_blankline').setup()
|
||||
|
|
Loading…
Reference in a new issue