nixos/config/nvim/lua/plugins.lua
2023-02-15 17:29:08 +00:00

133 lines
2.6 KiB
Lua

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({
"catppuccin/nvim",
as = "catppuccin",
config = function()
require("colours")
end,
})
use({
"feline-nvim/feline.nvim",
config = function()
require("config.feline")
end,
})
use({
"rcarriga/nvim-notify",
config = function()
require("notify").setup({
background_colour = "#000000",
})
vim.notify = require("notify")
end,
})
use("kyazdani42/nvim-web-devicons")
use("nvim-lua/plenary.nvim")
use({
"neovim/nvim-lspconfig",
requires = {
{ "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" },
{ "jose-elias-alvarez/null-ls.nvim" },
},
config = function()
require("config.lsp")
require("config.cmp")
end,
})
use({
"nvim-treesitter/nvim-treesitter",
config = function()
require("config.treesitter")
end,
})
use({
"lewis6991/gitsigns.nvim",
config = function()
require("config.gitsigns")
end,
})
use({
"kyazdani42/nvim-tree.lua",
config = function()
require("config.nvim-tree")
end,
})
use({
"ahmedkhalf/project.nvim",
config = function()
require("config.project")
end,
})
use({
"akinsho/toggleterm.nvim",
tag = "v2.*",
config = function()
require("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.telescope")
end,
})
use({
"folke/trouble.nvim",
requires = "nvim-tree/nvim-web-devicons",
config = function()
require("config.trouble")
end,
})
use({
"lukas-reineke/indent-blankline.nvim",
config = function()
require("config.indent_blankline")
end,
})
use({
"numToStr/Navigator.nvim",
config = function()
require("Navigator").setup()
end,
})
end,
config = {
display = {
open_fn = function()
return require("packer.util").float({ border = "single" })
end,
},
},
})