Update structure; add .lua-format; add terminal support

This commit is contained in:
2021-04-22 00:48:40 -03:00
parent a0788e4347
commit 90ffef282e
6 changed files with 169 additions and 107 deletions

View File

@@ -1,22 +1,14 @@
local M = {}
local hl = require('tokyo.theme')
local highlight = vim.api.nvim_set_hl
local set_hl_ns = vim.api.nvim__set_hl_ns or vim.api.nvim_set_hl_ns
local create_namespace = vim.api.nvim_create_namespace
local highlights = require('tokyo.highlights')
local terminal = require('tokyo.terminal')
local function colorscheme()
vim.cmd("hi clear")
if vim.fn.exists("syntax_on") then vim.cmd("syntax reset") end
vim.o.background = "dark"
vim.o.termguicolors = true
local ns = create_namespace("tokyo")
for _, group in pairs(hl) do
for group_name, group_settings in pairs(group) do
highlight(ns, group_name, group_settings)
end
end
set_hl_ns(ns)
highlights.setup()
terminal.setup()
end
function M.setup() colorscheme() end