2022-10-01 11:46:18 +00:00
|
|
|
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" })
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "windwp/nvim-autopairs", commit = "6b6e35fc9aca1030a74cc022220bc22ea6c5daf4" })
|
2022-10-01 15:20:10 +00:00
|
|
|
use({ "numToStr/Comment.nvim", tag = "v0.*" })
|
2022-10-30 16:55:36 +00:00
|
|
|
use({ "JoosepAlviste/nvim-ts-context-commentstring", commit = "32d9627123321db65a4f158b72b757bcaef1a3f4" })
|
2022-10-18 18:41:23 +00:00
|
|
|
use({ "kyazdani42/nvim-web-devicons", commit = "9061e2d355ecaa2b588b71a35e7a11358a7e51e1" })
|
2022-10-22 16:19:32 +00:00
|
|
|
use({ "akinsho/bufferline.nvim", tag = "v3.*" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" })
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "nvim-lualine/lualine.nvim", commit = "3325d5d43a7a2bc9baeef2b7e58e1d915278beaf" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "lewis6991/impatient.nvim", commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6" })
|
|
|
|
use({ "lukas-reineke/indent-blankline.nvim", tag = "v2.*" })
|
2022-10-08 17:34:36 +00:00
|
|
|
use({ "nvim-zh/auto-save.nvim", commit = "4b59610e1318f8a89501cee9d47a0e8650f0a4d5" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "gelguy/wilder.nvim", commit = "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" })
|
2022-10-01 14:57:11 +00:00
|
|
|
use({ "romgrk/fzy-lua-native", commit = "085c7d262aa35cc55a8523e8c1618d398bf717a7", run = "make" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "mg979/vim-visual-multi", tag = "v0.*" })
|
|
|
|
use({ "Shatur/neovim-session-manager", commit = "4005dac93f5cd1257792259ef4df6af0e3afc213" })
|
2022-10-30 16:55:36 +00:00
|
|
|
use({ "nvim-treesitter/nvim-treesitter", commit = "a2ff4b42e1d446738bf260b245208005fb555d6d" })
|
2022-10-08 16:58:34 +00:00
|
|
|
use({ "ray-x/sad.nvim", commit = "01b7d84f4f73c8963f5933f09e88c833757bc7d8" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({
|
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
|
|
branch = "v2.x",
|
2022-10-28 19:03:45 +00:00
|
|
|
requires = { "MunifTanjim/nui.nvim", commit = "d12a6977846b2fa978bff89b439e509320854e10" },
|
2022-10-01 11:46:18 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Colorschemes
|
2022-10-30 16:55:36 +00:00
|
|
|
use({ "folke/tokyonight.nvim", commit = "29e2c689c10679f723ae1deadf7f0067d394a545" })
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- cmp plugins
|
2022-10-30 16:55:36 +00:00
|
|
|
use({ "hrsh7th/nvim-cmp", commit = "9bb8ee6e2d6ab3c8cc53323b79f05886bc722faa" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa" })
|
2022-10-05 16:21:12 +00:00
|
|
|
use({ "hrsh7th/cmp-path", commit = "91ff86cd9c29299a64f968ebb45846c485725f23" })
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "saadparwaiz1/cmp_luasnip", commit = "18095520391186d634a0045dacaa346291096566" })
|
2022-10-30 16:55:36 +00:00
|
|
|
use({ "hrsh7th/cmp-nvim-lsp", commit = "78924d1d677b29b3d1fe429864185341724ee5a2" })
|
2022-10-01 11:46:18 +00:00
|
|
|
|
2022-10-12 14:02:54 +00:00
|
|
|
-- Snippets
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "L3MON4D3/LuaSnip", tag = "v1.*" })
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "rafamadriz/friendly-snippets", commit = "c93311fbcc840210a2c0db574177d84a35a2c9c1" })
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- LSP
|
2022-10-30 16:55:36 +00:00
|
|
|
use({ "neovim/nvim-lspconfig", commit = "67f0d0025b118e7e328396d7732d97415a9afda4" })
|
|
|
|
use({ "williamboman/mason.nvim", commit = "37c745fa73b983c86904132efb30ef2a4a76df5e" })
|
|
|
|
use({ "williamboman/mason-lspconfig.nvim", commit = "a910b4d50f7a32d2f9057d636418a16843094b7c" })
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "jose-elias-alvarez/null-ls.nvim", commit = "f1add2302e6a01531a007c51054392d2029dbed4" })
|
2022-10-05 16:21:12 +00:00
|
|
|
use({ "RRethy/vim-illuminate", commit = "0603e75fc4ecde1ee5a1b2fc8106ed6704f34d14" })
|
2022-10-14 19:06:10 +00:00
|
|
|
use({ "folke/trouble.nvim", commit = "ed65f84abc4a1e5d8f368d7e02601fc0357ea15e" })
|
2022-10-16 09:46:59 +00:00
|
|
|
use({ "simrat39/symbols-outline.nvim", commit = "6a3ed24c5631da7a5d418bced57c16b32af7747c" })
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- Telescope
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "nvim-telescope/telescope.nvim", commit = "97847309cbffbb33e442f07b8877d20322a26922" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "nvim-telescope/telescope-ui-select.nvim", commit = "62ea5e58c7bbe191297b983a9e7e89420f581369" })
|
|
|
|
use({
|
|
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
|
|
commit = "65c0ee3d4bb9cb696e262bca1ea5e9af3938fc90",
|
|
|
|
run = "make",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Git
|
2022-10-22 16:19:32 +00:00
|
|
|
use({ "lewis6991/gitsigns.nvim", tag = "v0.*" })
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "sindrets/diffview.nvim", commit = "94a3422415a092db1f2e00af5bd7db4ec1c6b8d7" })
|
|
|
|
use({ "f-person/git-blame.nvim", commit = "7c498272d0f97c583fc3a92f196231a90455eb19" })
|
2022-10-01 11:46:18 +00:00
|
|
|
|
|
|
|
-- DAP
|
2022-10-22 16:19:32 +00:00
|
|
|
use({ "mfussenegger/nvim-dap", tag = "0.*" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({ "rcarriga/nvim-dap-ui", tag = "v2.*" })
|
|
|
|
use({ "ravenxrz/DAPInstall.nvim", commit = "8798b4c36d33723e7bba6ed6e2c202f84bb300de" })
|
|
|
|
use({ "theHamsta/nvim-dap-virtual-text", commit = "2971ce3e89b1711cc26e27f73d3f854b559a77d4" })
|
|
|
|
|
2022-10-12 14:02:54 +00:00
|
|
|
-- Go
|
2022-10-28 19:03:45 +00:00
|
|
|
use({ "ray-x/go.nvim", commit = "6eea6a265d867b795945b4b360ded4ce87b0ded3" })
|
2022-10-01 11:46:18 +00:00
|
|
|
use({
|
|
|
|
"ray-x/guihua.lua",
|
2022-10-07 17:31:01 +00:00
|
|
|
commit = "2fce8a8b462cf6599d9422efb157773126e1c7ce",
|
2022-10-01 11:46:18 +00:00
|
|
|
run = "cd lua/fzy && make",
|
|
|
|
|
|
|
|
config = function()
|
|
|
|
require("guihua.maps").setup({
|
|
|
|
maps = { close_view = "<C-x>" },
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2022-10-12 14:02:54 +00:00
|
|
|
-- Markdown
|
2022-10-01 11:46:18 +00:00
|
|
|
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)
|