nixos/config/nvim/lua/plugins.lua

150 lines
4 KiB
Lua
Raw Normal View History

vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
augroup end
]])
2022-11-07 15:32:06 +00:00
require('packer').startup {
function(use)
use 'wbthomason/packer.nvim'
use {
"EdenEast/nightfox.nvim",
config = function()
require 'config_plugins.config_nightfox'
end
}
2022-11-07 15:32:06 +00:00
use {
'rcarriga/nvim-notify',
2022-11-07 16:41:35 +00:00
config = function()
require("notify").setup {
background_colour = "#282c34",
}
2022-11-07 15:32:06 +00:00
vim.notify = require("notify")
end
}
use 'kyazdani42/nvim-web-devicons'
use 'nvim-lua/plenary.nvim'
use {
'neovim/nvim-lspconfig',
config = function()
require 'config_plugins.config_lsp'
end,
}
2022-11-07 15:32:06 +00:00
use 'christoomey/vim-tmux-navigator'
use {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
'hrsh7th/cmp-nvim-lua',
'hrsh7th/nvim-cmp',
'hrsh7th/cmp-vsnip',
'hrsh7th/vim-vsnip',
}
2022-11-07 15:32:06 +00:00
use {
'nvim-treesitter/nvim-treesitter',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require 'config_plugins.config_treesitter'
end
}
use {
'j-hui/fidget.nvim',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require('fidget').setup()
end
}
use {
'stevearc/aerial.nvim',
branch = 'nvim-0.5',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require 'config_plugins.config_aerial'
end
}
use {
'tpope/vim-fugitive',
opt = true,
2022-11-07 16:41:35 +00:00
cmd = { 'G', 'Git' }
2022-11-07 15:32:06 +00:00
}
use {
'https://github.com/lewis6991/gitsigns.nvim.git',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require 'config_plugins.config_gitsigns'
end
}
use {
'nvim-lualine/lualine.nvim',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
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
}
2022-11-07 15:32:06 +00:00
use {
'akinsho/toggleterm.nvim',
tag = 'v2.*',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require 'config_plugins.config_toggleterm'
end
}
use {
'nvim-telescope/telescope-fzf-native.nvim',
run = 'make'
}
2022-11-07 15:32:06 +00:00
use {
'nvim-telescope/telescope.nvim',
branch = '0.1.x',
requires = {
2022-11-07 16:41:35 +00:00
{ 'nvim-lua/plenary.nvim' }
2022-11-07 15:32:06 +00:00
},
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require 'config_plugins.config_telescope'
end
}
use {
'michaelb/sniprun',
run = 'bash install.sh',
opt = true,
2022-11-07 16:41:35 +00:00
cmd = { 'SnipRun', 'SnipInfo', 'SnipReset' },
config = function()
2022-11-07 15:32:06 +00:00
require 'config_plugins.config_sniprun'
end
}
use {
'phaazon/hop.nvim',
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require('hop').setup()
end
}
use {
'folke/trouble.nvim',
2022-11-07 16:41:35 +00:00
config = function()
require 'config_plugins.config_trouble'
2022-11-07 15:32:06 +00:00
end
}
use {
"lukas-reineke/indent-blankline.nvim",
2022-11-07 16:41:35 +00:00
config = function()
2022-11-07 15:32:06 +00:00
require('indent_blankline').setup()
end
}
end,
config = {
display = {
2022-11-07 16:41:35 +00:00
open_fn = function()
2022-11-07 15:32:06 +00:00
return require('packer.util').float({ border = 'single' })
end
},
}
2022-11-07 15:32:06 +00:00
}