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