From 1126034bd17fa41448f7f04b080f4ae82065e102 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sun, 3 Nov 2024 01:49:48 -0400 Subject: [PATCH] feat: enable optional use of Astral colorscheme management via global variable --- lua/config/options.lua | 4 +++- lua/plugins/astral.lua | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 7384f03..d7764e1 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -177,7 +177,9 @@ vim.g.disable_transparency = true ---@type boolean Options: -- Set colorcolumn ---vim.opt.colorcolumn = "120" ---@type string|table Options: [column] +--vim.opt.colorcolumn = "120" ---@type string|table Options: [column] +--Use Astral colorscheme management +vim.g.use_astral = false ---@type boolean Options: -- ━━━━━━━━━━━━━━━━━━━━━━━━━ TABS AND INDENTATION ━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/lua/plugins/astral.lua b/lua/plugins/astral.lua index dc88b3f..4b35b42 100644 --- a/lua/plugins/astral.lua +++ b/lua/plugins/astral.lua @@ -6,6 +6,7 @@ return { -- Astral "rootiest/astral.nvim", version = "*", -- Pin to GitHub releases + enabled = require("data.func").check_global_var("use_astral", true, true), opts = { fallback_themes = { "catppuccin-macchiato",