summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLostNeophyte <[email protected]>2023-01-10 09:11:40 +0100
committerLostNeophyte <[email protected]>2023-01-10 09:12:14 +0100
commit34bcbd5489112e649f566cb5784a671f7bbcd51e (patch)
treeae85792847588339d8d6f2795297361709997f42
parent18845f9e5fc9b747256b9ec5c505b16a19c3686b (diff)
feat: deprecation warningremove-old-colorschemes
-rw-r--r--lua/lvim/config/_deprecated.lua16
-rw-r--r--lua/lvim/core/theme.lua44
2 files changed, 16 insertions, 44 deletions
diff --git a/lua/lvim/config/_deprecated.lua b/lua/lvim/config/_deprecated.lua
index 4cf4381e..594b47af 100644
--- a/lua/lvim/config/_deprecated.lua
+++ b/lua/lvim/config/_deprecated.lua
@@ -79,6 +79,22 @@ function M.handle()
---@deprecated
lvim.lang = {}
setmetatable(lvim.lang, mt)
+
+ ---@deprecated
+ lvim.builtin.theme.tokyonight = {}
+ local tokyonight_deprecation = function(t, k, v)
+ lvim.colorscheme = "lunar"
+ deprecate(
+ "lvim.builtin.theme.tokyonight." .. k,
+ "tokyonight was removed from core plugins, configure it like this <https://www.lunarvim.org/docs/master/plugins/extra-plugins#tokyonight>"
+ )
+ rawset(t, k, v ~= nil and v or {})
+ return t[k]
+ end
+ setmetatable(lvim.builtin.theme.tokyonight, {
+ __newindex = tokyonight_deprecation,
+ __index = tokyonight_deprecation,
+ })
end
return M
diff --git a/lua/lvim/core/theme.lua b/lua/lvim/core/theme.lua
index 6bf67906..6cb16b02 100644
--- a/lua/lvim/core/theme.lua
+++ b/lua/lvim/core/theme.lua
@@ -9,50 +9,6 @@ M.config = function()
options = { -- currently unused
},
},
- tokyonight = {
- options = {
- on_highlights = function(hl, c)
- hl.IndentBlanklineContextChar = {
- fg = c.dark5,
- }
- hl.TSConstructor = {
- fg = c.blue1,
- }
- hl.TSTagDelimiter = {
- fg = c.dark5,
- }
- end,
- style = "night", -- The theme comes in three styles, `storm`, a darker variant `night` and `day`
- transparent = lvim.transparent_window, -- Enable this to disable setting the background color
- terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
- styles = {
- -- Style to be applied to different syntax groups
- -- Value is any valid attr-list value for `:help nvim_set_hl`
- comments = { italic = true },
- keywords = { italic = true },
- functions = {},
- variables = {},
- -- Background styles. Can be "dark", "transparent" or "normal"
- sidebars = "dark", -- style for sidebars, see below
- floats = "dark", -- style for floating windows
- },
- -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]`
- sidebars = {
- "qf",
- "vista_kind",
- "terminal",
- "packer",
- "spectre_panel",
- "NeogitStatus",
- "help",
- },
- day_brightness = 0.3, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors
- hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.
- dim_inactive = false, -- dims inactive windows
- lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
- use_background = true, -- can be light/dark/auto. When auto, background will be set to vim.o.background
- },
- },
}
end