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 "leoluz/nvim-dap-go", -- dap go
30 "nvim-lua/plenary.nvim", -- base lib
31 "nvim-telescope/telescope.nvim", -- telescope
32 "nvim-telescope/telescope-file-browser.nvim", -- telescope file browser
33 "TimUntersberger/neogit", -- magit
34 "f-person/git-blame.nvim", -- more git info
35 "echasnovski/mini.nvim", -- provides many things
36 "mhartington/formatter.nvim", -- provider formatter
37 "mfussenegger/nvim-lint", -- general linter
38 "nvim-treesitter/nvim-treesitter-context", -- show context of where it is at the code
39 "mbbill/undotree", -- keep track of undos
40 "simrat39/symbols-outline.nvim", -- symbols tree (lsp aware)
41 "caenrique/nvim-toggle-terminal", -- help with toggle from and to terminals [DEPRECATED]
42 "RRethy/vim-illuminate", -- hightlight use of the same word (lsp aware)
43 "sainnhe/edge", -- light theme
44 "ellisonleao/gruvbox.nvim", -- light theme
45 "williamboman/mason.nvim", -- manages many things
46 "williamboman/mason-lspconfig.nvim", -- glue mason and lspconfig
47 "neovim/nvim-lspconfig", -- lsp support
48}
49-- stylua: ignore end
50
51add({
52 source = "nvim-treesitter/nvim-treesitter",
53 hooks = {
54 post_checkout = function()
55 vim.cmd("TSUpdate")
56 end,
57 },
58})
59add({
60 source = "fatih/vim-go",
61 hooks = {
62 post_checkout = function()
63 vim.cmd("GoUpdateBinaries")
64 end,
65 },
66})
67for _, value in ipairs(pkgs) do
68 add({ source = value })
69end
70
71require("gabrielgio")