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",
7 "clone",
8 "--filter=blob:none",
9 "https://github.com/echasnovski/mini.nvim",
10 mini_path,
11 }
12 vim.fn.system(clone_cmd)
13 vim.cmd("packadd mini.nvim | helptags ALL")
14 vim.cmd('echo "Installed `mini.nvim`" | redraw')
15end
16
17local mini_deps = require("mini.deps")
18local add = mini_deps.add
19
20mini_deps.setup({ path = { package = path_package } })
21
22-- stylua: ignore start
23local pkgs = {
24 "folke/trouble.nvim", -- diagnostics
25 "mfussenegger/nvim-dap", -- add dap support
26 "nvim-neotest/nvim-nio", -- async support library
27 "rcarriga/nvim-dap-ui", -- dap ui
28 "theHamsta/nvim-dap-virtual-text", -- dap in line text
29 "nvim-lua/plenary.nvim", -- base lib
30 "f-person/git-blame.nvim", -- more git info
31 "nvim-mini/mini.nvim", -- provides many things
32 "mhartington/formatter.nvim", -- provider formatter
33 "mfussenegger/nvim-lint", -- general linter
34 "nvim-treesitter/nvim-treesitter-context", -- show context of where it is at the code
35 "mbbill/undotree", -- keep track of undos
36 "hedyhli/outline.nvim", -- symbols tree (lsp aware)
37 "akinsho/toggleterm.nvim", -- terminal
38 "sainnhe/edge", -- light theme
39 "neovim/nvim-lspconfig", -- lsp support
40 "ray-x/go.nvim", -- go things
41}
42-- stylua: ignore end
43
44add({
45 source = "nvim-treesitter/nvim-treesitter",
46 hooks = {
47 post_checkout = function()
48 vim.cmd("TSUpdate")
49 end,
50 },
51})
52
53if vim.fn.executable("claude") == 1 then
54 table.insert(pkgs, "coder/claudecode.nvim")
55end
56
57for _, value in ipairs(pkgs) do
58 add({ source = value })
59end
60
61require("gabrielgio")