Skip to content

Commit

Permalink
cleanup: Removed old theme module
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed May 5, 2023
1 parent b3ca2a3 commit 40edd5a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 685 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- #160 closed due to inactivity.
- #191 closed due to inactivity.
- #201 fixed
- #193 closed with conversation.
- #213 fixed
- #228 fixed
- #231 fixed
Expand Down
1 change: 1 addition & 0 deletions doc/gt_deprecated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ GLOBAL OPTIONS


MODULES
- *'theme'* Moved to |'github-theme.group'|
- *'types'* Removed.
- *'plugins'* Removed.
- *'plugins.lualine'* Moved to |'github-theme.util.lualine'|
Expand Down
4 changes: 2 additions & 2 deletions lua/github-theme/autocmds.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local config = require('github-theme.config')
local util = require('github-theme.util')

---@class gt.Autocmds
local M = {}

---Delete the autocmds when the theme changes to something else
Expand Down Expand Up @@ -74,7 +74,7 @@ M.native_cmds = function()
end

M.set = function()
if vim.fn.has('nvim-0.7') == 1 then
if util.use_nvim_api then
if not pcall(M.native_cmds) then
M.viml_cmds()
end
Expand Down
7 changes: 1 addition & 6 deletions lua/github-theme/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local util = require('github-theme.util')
local M = { theme = 'github_dark', has_options = true }

local defaults = {
dev = false,
transparent = false,
hide_end_of_buffer = true,
hide_nc_statusline = true,
Expand Down Expand Up @@ -45,12 +46,6 @@ local defaults = {
treesitter = util.is_nvim,
lsp_semantic_tokens = util.is_nvim,
},

colors = {},
overrides = function()
return {}
end,
dev = false,
}

M.options = collect.deep_copy(defaults)
Expand Down
Loading

0 comments on commit 40edd5a

Please sign in to comment.