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