1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-09 15:01:13 +00:00
dotfiles/.config/nvim/lua/core/plugins.lua

140 lines
5.5 KiB
Lua

local fn = vim.fn
-- Automatically install packer
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = fn.system({
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_path,
})
print("Installing packer close and reopen Neovim...")
vim.cmd([[packadd packer.nvim]])
end
-- Autocommand that reloads neovim whenever you save the plugins.lua file
-- vim.cmd([[
-- augroup packer_user_config
-- autocmd!
-- autocmd BufWritePost plugins.lua source <afile> | PackerSync
-- augroup end
-- ]])
local status_ok, packer = pcall(require, "packer")
if not status_ok then
return
end
packer.init({
display = {
open_fn = function()
return require("packer.util").float({ border = "rounded" })
end,
},
})
return packer.startup(function(use)
-- Plugins
use({ "wbthomason/packer.nvim", commit = "6afb67460283f0e990d35d229fd38fdc04063e0a" })
use({ "nvim-lua/plenary.nvim", commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7" })
use({ "windwp/nvim-autopairs", commit = "5d75276fce887c0cf433bb1b9867717907211063" })
use({ "numToStr/Comment.nvim", tag = "v0.*" })
use({ "JoosepAlviste/nvim-ts-context-commentstring", commit = "32d9627123321db65a4f158b72b757bcaef1a3f4" })
use({ "kyazdani42/nvim-web-devicons", commit = "3b1b794bc17b7ac3df3ae471f1c18f18d1a0f958" })
use({ "akinsho/bufferline.nvim", tag = "v3.*" })
use({ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" })
use({ "nvim-lualine/lualine.nvim", commit = "3325d5d43a7a2bc9baeef2b7e58e1d915278beaf" })
use({ "lewis6991/impatient.nvim", commit = "d3dd30ff0b811756e735eb9020609fa315bfbbcc" })
use({ "lukas-reineke/indent-blankline.nvim", tag = "v2.*" })
use({ "nvim-zh/auto-save.nvim", commit = "4b59610e1318f8a89501cee9d47a0e8650f0a4d5" })
use({ "gelguy/wilder.nvim", commit = "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" })
use({ "romgrk/fzy-lua-native", commit = "085c7d262aa35cc55a8523e8c1618d398bf717a7", run = "make" })
use({ "mg979/vim-visual-multi", tag = "v0.*" })
use({ "Shatur/neovim-session-manager", commit = "24ceb4bfe666ca74f52ed3821a9f778c6324a84b" })
use({ "nvim-treesitter/nvim-treesitter", commit = "1b3f93dcb90e1c282fe9259e5a15f34d504fd5a1" })
use({ "ray-x/sad.nvim", commit = "01b7d84f4f73c8963f5933f09e88c833757bc7d8" })
use({
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
requires = { "MunifTanjim/nui.nvim", commit = "d12a6977846b2fa978bff89b439e509320854e10" },
})
use({ "taybart/b64.nvim", commit = "12dde6ebc3035f010833f513cfbd9abad92b28b3" })
-- Colorschemes
use({ "folke/tokyonight.nvim", commit = "62b4e89ea1766baa3b5343ca77d62c817f5f48d0" })
-- cmp plugins
use({ "hrsh7th/nvim-cmp", commit = "431f0459681724c97e58899272b6acf5ff039cba" })
use({ "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa" })
use({ "hrsh7th/cmp-path", commit = "91ff86cd9c29299a64f968ebb45846c485725f23" })
use({ "saadparwaiz1/cmp_luasnip", commit = "18095520391186d634a0045dacaa346291096566" })
use({ "hrsh7th/cmp-nvim-lsp", commit = "59224771f91b86d1de12570b4070fe4ad7cd1eeb" })
-- Snippets
use({ "L3MON4D3/LuaSnip", tag = "v1.*" })
use({ "rafamadriz/friendly-snippets", commit = "ef8caa5002e53977779ce8ab18a9c393ed624386" })
-- LSP
use({ "neovim/nvim-lspconfig", commit = "d005193b6476088ff032607baca07b1bbbeb36ee" })
use({ "williamboman/mason.nvim", commit = "2f2efa0d7b786c92c82f5a98dcbc00bba7323555" })
use({ "williamboman/mason-lspconfig.nvim", commit = "edf15b98cd7d7ce0f83cf7d3a968145a3f974772" })
use({ "jose-elias-alvarez/null-ls.nvim", commit = "c51978f546a86a653f4a492b86313f4616412cec" })
use({ "RRethy/vim-illuminate", commit = "a6d0b28ea7d6b9d139374be1f94a16bd120fcda3" })
use({ "folke/trouble.nvim", commit = "897542f90050c3230856bc6e45de58b94c700bbf" })
use({ "glepnir/lspsaga.nvim", commit = "85e1c00f5a6645b0571d475b4b43803377a82bf0" })
use({ "arkav/lualine-lsp-progress", commit = "56842d097245a08d77912edf5f2a69ba29f275d7" })
-- Telescope
use({ "nvim-telescope/telescope.nvim", commit = "cea9c75c19d172d2c6f089f21656019734a615cf" })
use({ "nvim-telescope/telescope-ui-select.nvim", commit = "62ea5e58c7bbe191297b983a9e7e89420f581369" })
use({
"nvim-telescope/telescope-fzf-native.nvim",
commit = "65c0ee3d4bb9cb696e262bca1ea5e9af3938fc90",
run = "make",
})
-- Git
use({ "lewis6991/gitsigns.nvim", tag = "v0.*" })
use({ "sindrets/diffview.nvim", commit = "d2d9b18bd50fa1363bd8bdf65c9678fb1af125b3" })
use({ "f-person/git-blame.nvim", commit = "d3afb1c57918720548effb42edec530232436378" })
-- DAP
use({ "mfussenegger/nvim-dap", tag = "0.*" })
use({ "rcarriga/nvim-dap-ui", tag = "v2.*" })
use({ "ravenxrz/DAPInstall.nvim", commit = "8798b4c36d33723e7bba6ed6e2c202f84bb300de" })
use({ "theHamsta/nvim-dap-virtual-text", commit = "2971ce3e89b1711cc26e27f73d3f854b559a77d4" })
-- Go
use({ "ray-x/go.nvim", commit = "3f4ae6284674fb49fac5dedb3cc2056c51ddfba7" })
use({
"ray-x/guihua.lua",
commit = "7e171d1725e0b0a33bb1c819f9110fd8b88785b3",
run = "cd lua/fzy && make",
config = function()
require("guihua.maps").setup({
maps = { close_view = "<C-x>" },
})
end,
})
-- Markdown
use({ "mzlogin/vim-markdown-toc", commit = "7ec05df27b4922830ace2246de36ac7e53bea1db" })
use({
"iamcco/markdown-preview.nvim",
run = "cd app && npm install",
setup = function()
vim.g.mkdp_filetypes = { "markdown" }
end,
ft = { "markdown" },
})
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if PACKER_BOOTSTRAP then
require("packer").sync()
end
end)