gabrielgio.lua @ aac0e96aee64454f30032ee9ceb39ce0066b566d

 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    "nvim-lua/plenary.nvim",                        -- base lib
29    "nvim-telescope/telescope.nvim",                -- telescope
30    "nvim-telescope/telescope-file-browser.nvim",   -- telescope file browser
31    "TimUntersberger/neogit",                       -- magit
32    "vimwiki/vimwiki",                              -- wiki
33    "f-person/git-blame.nvim",                      -- more git info
34    "echasnovski/mini.nvim",                        -- provides many things
35    "mhartington/formatter.nvim",                   -- provider formatter
36    "mfussenegger/nvim-lint",                       -- general linter
37    "nvim-treesitter/nvim-treesitter-context",      -- show context of where it is at the code
38    "theHamsta/nvim-dap-virtual-text",              -- support lib from tree sitter
39    "mbbill/undotree",                              -- keep track of undos
40    "hedyhli/outline.nvim",                         -- symbols tree (lsp aware)
41    "akinsho/toggleterm.nvim",                      -- terminal
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    "vimwiki/vimwiki",                              -- wiki
49    "ray-x/go.nvim",                                -- go things
50}
51-- stylua: ignore end
52
53add({
54	source = "nvim-treesitter/nvim-treesitter",
55	hooks = {
56		post_checkout = function()
57			vim.cmd("TSUpdate")
58		end,
59	},
60})
61
62-- work related ai plugins
63if vim.fn.executable("copilot") == 1 then
64	table.insert(pkgs, "github/copilot.vim") -- copilot
65end
66
67if vim.fn.executable("claude") == 1 then
68	table.insert(pkgs, "coder/claudecode.nvim") -- claude
69end
70
71for _, value in ipairs(pkgs) do
72	add({ source = value })
73end
74
75require("gabrielgio")