flexoki-neovim/lua/flexoki/init.lua

29 lines
490 B
Lua
Raw Normal View History

2023-11-01 03:15:26 +08:00
local config = require('flexoki.config')
local M = {}
2023-11-01 03:15:26 +08:00
---Load the Flexoki colorscheme
---@param opts FlexokiOptions
M.colorscheme = function(opts)
config.extend(opts)
vim.o.termguicolors = true
2023-11-01 03:15:26 +08:00
if vim.g.colors_name then
vim.cmd('hi clear')
vim.cmd('syntax reset')
end
vim.g.colors_name = 'flexoki'
require('flexoki.theme').set_highlights(opts)
2023-11-01 03:15:26 +08:00
end
---Set up the Flexoki colorscheme
---@param opts FlexokiOptions
M.setup = function (opts)
config.extend(opts)
end
return M