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