179 lines
5 KiB
Lua
179 lines
5 KiB
Lua
local ensure_packer = function()
|
|
local fn = vim.fn
|
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
vim.cmd [[packadd packer.nvim]]
|
|
return true
|
|
end
|
|
return false
|
|
end
|
|
|
|
local packer_bootstrap = ensure_packer()
|
|
|
|
vim.cmd([[
|
|
augroup packer_user_config
|
|
autocmd!
|
|
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
|
|
augroup end
|
|
]])
|
|
|
|
require('packer').startup {
|
|
function(use)
|
|
use 'wbthomason/packer.nvim'
|
|
use 'lewis6991/impatient.nvim'
|
|
use 'stevearc/dressing.nvim'
|
|
use {
|
|
"navarasu/onedark.nvim",
|
|
config = function ()
|
|
require("onedark").setup {
|
|
transparent = true,
|
|
lualine = {
|
|
transparent = true,
|
|
},
|
|
}
|
|
require("onedark").load()
|
|
end
|
|
}
|
|
use {
|
|
'rcarriga/nvim-notify',
|
|
config = function()
|
|
require("notify").setup {
|
|
background_colour = "#282c34",
|
|
}
|
|
vim.notify = require("notify")
|
|
end
|
|
}
|
|
use {
|
|
'vigoux/notifier.nvim',
|
|
config = function ()
|
|
require('notifier')
|
|
end
|
|
}
|
|
use 'kyazdani42/nvim-web-devicons'
|
|
use 'nvim-lua/plenary.nvim'
|
|
use {
|
|
'neovim/nvim-lspconfig',
|
|
'hrsh7th/nvim-cmp',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'hrsh7th/cmp-buffer',
|
|
'hrsh7th/cmp-path',
|
|
'hrsh7th/cmp-cmdline',
|
|
'f3fora/cmp-spell',
|
|
'petertriho/cmp-git',
|
|
'Dosx001/cmp-commit',
|
|
'kdheepak/cmp-latex-symbols',
|
|
'L3MON4D3/LuaSnip',
|
|
'saadparwaiz1/cmp_luasnip',
|
|
'rafamadriz/friendly-snippets',
|
|
'windwp/nvim-autopairs',
|
|
'https://github.com/jose-elias-alvarez/null-ls.nvim',
|
|
}
|
|
use {
|
|
'nvim-treesitter/nvim-treesitter',
|
|
config = function()
|
|
require 'config_plugins.config_treesitter'
|
|
end
|
|
}
|
|
use {
|
|
"ThePrimeagen/refactoring.nvim",
|
|
requires = {
|
|
{"nvim-lua/plenary.nvim"},
|
|
{"nvim-treesitter/nvim-treesitter"}
|
|
},
|
|
config = function ()
|
|
require("refactoring").setup()
|
|
end
|
|
}
|
|
use {
|
|
'j-hui/fidget.nvim',
|
|
config = function()
|
|
require('fidget').setup()
|
|
end
|
|
}
|
|
use {
|
|
'stevearc/aerial.nvim',
|
|
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',
|
|
config = function()
|
|
require 'config_plugins.config_nvim-tree'
|
|
end
|
|
}
|
|
use {
|
|
"ahmedkhalf/project.nvim",
|
|
config = function()
|
|
require 'config_plugins.config_project'
|
|
end
|
|
}
|
|
use {
|
|
'akinsho/toggleterm.nvim',
|
|
tag = 'v2.*',
|
|
config = function()
|
|
require 'config_plugins.config_toggleterm'
|
|
end
|
|
}
|
|
use {
|
|
'nvim-telescope/telescope-fzf-native.nvim',
|
|
run = 'make'
|
|
}
|
|
use {
|
|
'nvim-telescope/telescope.nvim',
|
|
branch = '0.1.x',
|
|
requires = {
|
|
{ 'nvim-lua/plenary.nvim' }
|
|
},
|
|
config = function()
|
|
require 'config_plugins.config_telescope'
|
|
end
|
|
}
|
|
use {
|
|
'folke/trouble.nvim',
|
|
config = function()
|
|
require 'config_plugins.config_trouble'
|
|
end
|
|
}
|
|
use {
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
config = function()
|
|
require('indent_blankline').setup {
|
|
show_current_context = true,
|
|
show_current_context_start = false,
|
|
}
|
|
end
|
|
}
|
|
if packer_bootstrap then
|
|
require('packer').sync()
|
|
end
|
|
end,
|
|
config = {
|
|
display = {
|
|
open_fn = function()
|
|
return require('packer.util').float({ border = 'single' })
|
|
end
|
|
},
|
|
}
|
|
}
|
|
require 'config_plugins.config_lsp'
|
|
require 'config_plugins.config_cmp'
|