refactor: move `community` to a separate file

pull/7/head
Micah Halter 2024-02-13 14:00:50 -05:00
parent cb61bab710
commit 95082bdcfd
No known key found for this signature in database
GPG Key ID: 4224A6EA9A8CAAA8
3 changed files with 11 additions and 30 deletions

View File

@ -26,11 +26,7 @@ lazy.setup({
pin_plugins = nil, -- Default will pin plugins when tracking `version` of AstroNvim, set to true/false to override
},
},
-- AstroCommunity: import any community modules here
-- TODO: Remove branch v4 on release
-- { "AstroNvim/astrocommunity", branch = "v4" },
-- { import = "astrocommunity.pack.lua" },
-- import/override with your plugins
{ import = "community" },
{ import = "plugins" },
} --[[@as LazySpec]], {
install = { colorscheme = { "astrodark", "habamax" } },

10
lua/community.lua Normal file
View File

@ -0,0 +1,10 @@
if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroCommunity: import any community modules here
---@type LazySpec
return {
-- TODO: Remove branch v4 on release
{ "AstroNvim/astrocommunity", branch = "v4" },
{ import = "astrocommunity.pack.lua" },
-- import/override with your plugins folder
}

View File

@ -1,25 +0,0 @@
---@type LazySpec
return {
-- Add community imports to the `lua/config/lazy.lua` file in your Neovim configuration folder (typically ~/.config/nvim)
-- this guarantees that the community plugin specs are loaded before the user configuration
-- This is a good place to do further customize the options set by the community plugins/packs
-- NOTICE: uncommenting below assumes you have the catppuccin AstroCommunity plugin imported in `lua/config/lazy.lua`
-- {
-- "catppuccin/nvim",
-- opts = {
-- integrations = {
-- sandwich = false,
-- noice = true,
-- mini = true,
-- leap = true,
-- markdown = true,
-- neotest = true,
-- cmp = true,
-- overseer = true,
-- lsp_trouble = true,
-- rainbow_delimiters = true,
-- },
-- },
-- },
}