2023-07-17 17:18:14 +00:00
|
|
|
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
|
|
|
|
|
|
|
-- Only required if you have packer configured as `opt`
|
|
|
|
vim.cmd [[packadd packer.nvim]]
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
|
|
-- Packer can manage itself
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
|
|
|
|
-- Fuzzy Finder
|
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim', tag = '0.1.2',
|
|
|
|
-- or , branch = '0.1.x',
|
|
|
|
requires = { {'nvim-lua/plenary.nvim'} }
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Colorscheme
|
|
|
|
use({
|
|
|
|
'rose-pine/neovim',
|
|
|
|
as = 'rose-pine',
|
|
|
|
config = function()
|
|
|
|
vim.cmd('colorscheme rose-pine')
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Color Coloring
|
|
|
|
use({ 'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' } })
|
|
|
|
use( 'nvim-treesitter/playground' )
|
|
|
|
|
|
|
|
-- Quick access to files
|
|
|
|
use( 'ThePrimeagen/harpoon' )
|
|
|
|
|
|
|
|
-- Recovery
|
|
|
|
use( 'mbbill/undotree' )
|
|
|
|
|
|
|
|
-- Git Status
|
|
|
|
use( 'tpope/vim-fugitive' )
|
|
|
|
|
|
|
|
-- Language Servers
|
|
|
|
use {
|
2023-07-21 07:58:44 +00:00
|
|
|
'VonHeikemen/lsp-zero.nvim',
|
|
|
|
branch = 'v2.x',
|
|
|
|
requires = {
|
|
|
|
-- LSP Support
|
|
|
|
{'neovim/nvim-lspconfig'}, -- Required
|
|
|
|
{ -- Optional
|
|
|
|
'williamboman/mason.nvim',
|
|
|
|
run = function()
|
|
|
|
pcall(vim.cmd, 'MasonUpdate')
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{'williamboman/mason-lspconfig.nvim'}, -- Optional
|
2023-07-17 17:18:14 +00:00
|
|
|
|
2023-07-21 07:58:44 +00:00
|
|
|
-- Autocompletion
|
|
|
|
{'hrsh7th/nvim-cmp'}, -- Required
|
|
|
|
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
|
|
|
{'L3MON4D3/LuaSnip'}, -- Required
|
2023-07-17 17:18:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-21 08:46:34 +00:00
|
|
|
-- Latex on NVIM
|
|
|
|
use 'lervag/vimtex'
|
|
|
|
|
2023-07-17 17:18:14 +00:00
|
|
|
-- :FixWhitespace
|
|
|
|
use "bronson/vim-trailing-whitespace"
|
|
|
|
|
2023-07-21 13:13:54 +00:00
|
|
|
-- Terminal
|
|
|
|
use {"akinsho/toggleterm.nvim", tag = '*', config = function()
|
|
|
|
require("toggleterm").setup()
|
|
|
|
end}
|
|
|
|
|
2023-07-21 07:58:44 +00:00
|
|
|
-- Parenthesis complete
|
2023-07-21 13:13:54 +00:00
|
|
|
use {
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
config = function() require("nvim-autopairs").setup {} end
|
|
|
|
}
|
2023-07-21 07:58:44 +00:00
|
|
|
|
2023-07-17 17:18:14 +00:00
|
|
|
end)
|