Rename to tokyodark

This commit is contained in:
2021-04-22 01:11:09 -03:00
parent 90ffef282e
commit 44d3879b37
8 changed files with 25 additions and 19 deletions

View File

@@ -1,8 +0,0 @@
lua << EOF
for k in pairs(package.loaded) do
if k:match(".*tokyo.*") then package.loaded[k] = nil end
end
EOF
lua require('tokyo').setup()

8
colors/tokyodark.vim Normal file
View File

@@ -0,0 +1,8 @@
lua << EOF
for k in pairs(package.loaded) do
if k:match(".*tokyodark.*") then package.loaded[k] = nil end
end
EOF
lua require('tokyodark').setup()

View File

@@ -1,6 +1,6 @@
local p = require('tokyo.palette') local p = require('tokyodark.palette')
local cfg = require('tokyo.config') local cfg = require('tokyodark.config')
local u = require('tokyo.utils') local u = require('tokyodark.utils')
local M = {} local M = {}
local hl = {langs = {}, plugins = {}} local hl = {langs = {}, plugins = {}}
@@ -10,7 +10,9 @@ 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 create_namespace = vim.api.nvim_create_namespace
local function load_highlights(ns, highlights) local function load_highlights(ns, highlights)
for group_name, group_settings in pairs(highlights) do highlight(ns, group_name, group_settings) end for group_name, group_settings in pairs(highlights) do
highlight(ns, group_name, group_settings)
end
end end
hl.predef = { hl.predef = {
@@ -174,7 +176,11 @@ hl.langs.json = {
jsonBraces = hl.predef.Fg jsonBraces = hl.predef.Fg
} }
hl.langs.yaml = {yamlKey = hl.predef.Red, yamlConstant = hl.predef.BlueItalic, yamlString = hl.predef.Green} hl.langs.yaml = {
yamlKey = hl.predef.Red,
yamlConstant = hl.predef.BlueItalic,
yamlString = hl.predef.Green
}
hl.langs.latex = { hl.langs.latex = {
texStatement = hl.predef.BlueItalic, texStatement = hl.predef.BlueItalic,
@@ -324,7 +330,7 @@ hl.plugins.git_commit = {
} }
function M.setup() function M.setup()
local ns = create_namespace("tokyo") local ns = create_namespace("tokyodark")
load_highlights(ns, hl.predef) load_highlights(ns, hl.predef)
load_highlights(ns, hl.common) load_highlights(ns, hl.common)
load_highlights(ns, hl.syntax) load_highlights(ns, hl.syntax)

View File

@@ -1,6 +1,6 @@
local M = {} local M = {}
local highlights = require('tokyo.highlights') local highlights = require('tokyodark.highlights')
local terminal = require('tokyo.terminal') local terminal = require('tokyodark.terminal')
local function colorscheme() local function colorscheme()
vim.cmd("hi clear") vim.cmd("hi clear")

View File

@@ -1,5 +1,5 @@
local color_gamma = require('tokyo.utils').color_gamma local color_gamma = require('tokyodark.utils').color_gamma
local gamma = require('tokyo.config').gamma local gamma = require('tokyodark.config').gamma
local colors = { local colors = {
black = '#06080A', black = '#06080A',

View File

@@ -1,5 +1,5 @@
local M = {} local M = {}
local p = require 'tokyo.palette' local p = require 'tokyodark.palette'
function M.setup() function M.setup()
vim.g.terminal_color_0 = p.black vim.g.terminal_color_0 = p.black