midnight.nvim/lua/midnight/init.lua
2025-11-08 13:05:48 -05:00

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