1local path_package = vim.fn.stdpath("data") .. "/site/"
2local mini_path = path_package .. "pack/deps/start/mini.nvim"
3
4if not vim.loop.fs_stat(mini_path) then
5 vim.cmd('echo "Installing `mini.nvim`" | redraw')
6 local clone_cmd = {
7 "git",
8 "clone",
9 "--filter=blob:none",
10 "https://github.com/echasnovski/mini.nvim",
11 mini_path,
12 }
13 vim.fn.system(clone_cmd)
14 vim.cmd("packadd mini.nvim | helptags ALL")
15 vim.cmd('echo "Installed `mini.nvim`" | redraw')
16end
17
18local mini_deps = require("mini.deps")
19local add = mini_deps.add
20
21mini_deps.setup({ path = { package = path_package } })
22
23-- stylua: ignore start
24local pkgs = {
25 "folke/trouble.nvim", -- diagnostics
26 "mfussenegger/nvim-dap", -- add dap support
27 "nvim-neotest/nvim-nio", -- async support library
28 "rcarriga/nvim-dap-ui", -- dap ui
29 "nvim-lua/plenary.nvim", -- base lib
30 "nvim-telescope/telescope.nvim", -- telescope
31 "nvim-telescope/telescope-file-browser.nvim", -- telescope file browser
32 "TimUntersberger/neogit", -- magit
33 "f-person/git-blame.nvim", -- more git info
34 "echasnovski/mini.nvim", -- provides many things
35 "mhartington/formatter.nvim", -- provider formatter
36 "mfussenegger/nvim-lint", -- general linter
37 "nvim-treesitter/nvim-treesitter-context", -- show context of where it is at the code
38 "mbbill/undotree", -- keep track of undos
39 "simrat39/symbols-outline.nvim", -- symbols tree (lsp aware)
40 "caenrique/nvim-toggle-terminal", -- help with toggle from and to terminals [DEPRECATED]
41 "RRethy/vim-illuminate", -- hightlight use of the same word (lsp aware)
42 "sainnhe/edge", -- light theme
43 "ellisonleao/gruvbox.nvim", -- light theme
44 "williamboman/mason.nvim", -- manages many things
45 "williamboman/mason-lspconfig.nvim", -- glue mason and lspconfig
46 "neovim/nvim-lspconfig", -- lsp support
47}
48-- stylua: ignore end
49
50add({
51 source = "nvim-treesitter/nvim-treesitter",
52 hooks = {
53 post_checkout = function()
54 vim.cmd("TSUpdate")
55 end,
56 },
57})
58add({
59 source = "fatih/vim-go",
60 hooks = {
61 post_checkout = function()
62 vim.cmd("GoUpdateBinaries")
63 end,
64 },
65})
66for _, value in ipairs(pkgs) do
67 add({ source = value })
68end
69
70require("gabrielgio")