maxmx03.dracula.nvim/lua/dracula/init.lua
2023-03-24 14:38:43 -03:00

28 lines
442 B
Lua

local M = {}
require("dracula.autocmd")
local theme = require("dracula.themes")
M.setup = function(config)
if vim.g.colors_name then
vim.cmd("hi clear")
end
vim.o.background = "dark"
if vim.fn.exists("syntax_on") then
vim.cmd("syntax reset")
end
vim.o.termguicolors = true
vim.g.colors_name = "dracula"
if config.soft then
require("dracula.theme.soft").set_highlights()
return
end
theme.set_highlights()
end
return M