nixos/config/nvim/lua/plugins.lua

134 lines
2.7 KiB
Lua
Raw Normal View History

vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
augroup end
]])
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
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({
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
requires = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
},
2023-02-16 11:49:25 +00:00
config = function()
require("config.neotree")
end,
})
use({
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
requires = {
{ "nvim-lua/plenary.nvim" },
{
"nvim-telescope/telescope-fzf-native.nvim",
run = "make",
},
},
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,
})
2023-02-16 11:49:25 +00:00
use({
"klen/nvim-test",
config = function()
2023-02-16 11:58:45 +00:00
require("config.nvim-test")
2023-02-16 11:49:25 +00:00
end,
})
end,
config = {
display = {
open_fn = function()
return require("packer.util").float({ border = "single" })
end,
},
},
})