config.nvim/lua/plugins.lua
2026-05-11 07:49:57 +02:00

68 lines
2.3 KiB
Lua

vim.pack.add({
{ src = "https://github.com/gruvbox-community/gruvbox" },
{ src = "https://github.com/lewis6991/gitsigns.nvim" },
{ src = "https://github.com/tpope/vim-commentary" },
{ src = "https://github.com/stevearc/oil.nvim" },
{
src = "https://github.com/folke/snacks.nvim",
opts = {
explorer = { enabled = true },
indent = { enabled = true },
input = { enabled = true },
picker = { enabled = true },
lazygit = { enabled = true },
},
},
{ src = "https://github.com/neovim/nvim-lspconfig" }, -- Required
{
src = "https://github.com/williamboman/mason.nvim",
build = function()
pcall(vim.cmd, "MasonUpdate")
end,
},
{ src = "https://github.com/williamboman/mason-lspconfig.nvim" }, -- Optional
-- {
-- src = "https://github.com/ThePrimeagen/harpoon",
-- branch = "harpoon2",
-- },
-- {
-- src = "https://github.com/iamcco/markdown-preview.nvim",
-- cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
-- ft = { "markdown" },
-- build = function()
-- vim.fn["mkdp#util#install"]()
-- end,
-- },
-- { src = "https://github.com/mhinz/vim-startify" },
-- {
-- src = "https://github.com/kristijanhusak/vim-dadbod-ui",
-- dependencies = {
-- { "tpope/vim-dadbod", lazy = true },
-- { "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql" }, lazy = true },
-- },
-- cmd = {
-- "DBUI",
-- "DBUIToggle",
-- "DBUIAddConnection",
-- "DBUIFindBuffer",
-- },
-- init = function()
-- -- Your DBUI configuration
-- vim.g.db_ui_use_nerd_fonts = 1
-- end,
-- },
-- {
-- src = "https://github.com/olimorris/codecompanion.nvim",
-- dependencies = {
-- "nvim-lua/plenary.nvim",
-- "nvim-treesitter/nvim-treesitter",
-- },
-- },
}, opts)
local files = vim.split(vim.fn.globpath(vim.fn.stdpath("config") .. "/lua/plugin", "*.lua", true), "\n")
for _, f in ipairs(files) do
local name = vim.fn.fnamemodify(f, ":t:r")
require("plugin." .. name)
end