29 lines
456 B
Lua
29 lines
456 B
Lua
local M = {}
|
|
|
|
---@class MidnightConfig
|
|
---@field [string] any
|
|
|
|
---@param opts? MidnightConfig
|
|
---@return nil
|
|
function M.setup(opts)
|
|
opts = opts or {}
|
|
end
|
|
|
|
---@return nil
|
|
function M.load()
|
|
if vim.g.colors_name then
|
|
vim.cmd('hi clear')
|
|
end
|
|
|
|
if vim.fn.exists('syntax_on') then
|
|
vim.cmd('syntax reset')
|
|
end
|
|
|
|
vim.o.termguicolors = true
|
|
vim.g.colors_name = 'midnight'
|
|
|
|
local theme = require('midnight.theme')
|
|
theme.apply()
|
|
end
|
|
|
|
return M
|