astronvim_config/lua/community.lua
Michael Floßmann f58d044ada initial commit
2025-07-03 09:34:30 +02:00

50 lines
1.7 KiB
Lua

-- AstroCommunity: import any community modules here
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
-- This guarantees that the specs are processed before any user plugins.
local function importPackage(group, packages)
if type(packages) ~= "table" then packages = { packages } end
local imports = {}
for _, p in ipairs(packages) do
imports[#imports + 1] = { import = table.concat { "astrocommunity.", group, ".", p } }
end
return unpack(imports)
end
---@type LazySpec
return {
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.lua" },
-- import/override with your plugins folder
-- Colorschemes
{ import = "astrocommunity.colorscheme.catppuccin" },
{ import = "astrocommunity.colorscheme.everforest" },
{ import = "astrocommunity.colorscheme.tokyonight-nvim" },
{ import = "astrocommunity.colorscheme.nord-nvim" },
{ import = "astrocommunity.colorscheme.onedarkpro-nvim" },
{ import = "astrocommunity.colorscheme.rose-pine" },
{ import = "astrocommunity.colorscheme.gruvbox-nvim" },
{
import = "astrocommunity.motion.flash-nvim",
-- keys = {
-- { "z", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
-- { "Z", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
-- },
},
{ import = "astrocommunity.motion.nvim-spider" },
{ import = "astrocommunity.motion.marks-nvim" },
{ import = "astrocommunity.motion.before-nvim" },
{
import = "astrocommunity.file-explorer.oil-nvim",
-- keys = {
-- { "<leader>-", mode = { "n" }, require("oil").toggle_float },
-- },
},
{ import = "astrocommunity.file-explorer.telescope-file-browser-nvim" },
}