Rename to tokyodark
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local p = require('tokyo.palette')
|
||||
local cfg = require('tokyo.config')
|
||||
local u = require('tokyo.utils')
|
||||
local p = require('tokyodark.palette')
|
||||
local cfg = require('tokyodark.config')
|
||||
local u = require('tokyodark.utils')
|
||||
|
||||
local M = {}
|
||||
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 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
|
||||
|
||||
hl.predef = {
|
||||
@@ -174,7 +176,11 @@ hl.langs.json = {
|
||||
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 = {
|
||||
texStatement = hl.predef.BlueItalic,
|
||||
@@ -324,7 +330,7 @@ hl.plugins.git_commit = {
|
||||
}
|
||||
|
||||
function M.setup()
|
||||
local ns = create_namespace("tokyo")
|
||||
local ns = create_namespace("tokyodark")
|
||||
load_highlights(ns, hl.predef)
|
||||
load_highlights(ns, hl.common)
|
||||
load_highlights(ns, hl.syntax)
|
||||
@@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
local highlights = require('tokyo.highlights')
|
||||
local terminal = require('tokyo.terminal')
|
||||
local highlights = require('tokyodark.highlights')
|
||||
local terminal = require('tokyodark.terminal')
|
||||
|
||||
local function colorscheme()
|
||||
vim.cmd("hi clear")
|
||||
@@ -1,5 +1,5 @@
|
||||
local color_gamma = require('tokyo.utils').color_gamma
|
||||
local gamma = require('tokyo.config').gamma
|
||||
local color_gamma = require('tokyodark.utils').color_gamma
|
||||
local gamma = require('tokyodark.config').gamma
|
||||
|
||||
local colors = {
|
||||
black = '#06080A',
|
||||
@@ -1,5 +1,5 @@
|
||||
local M = {}
|
||||
local p = require 'tokyo.palette'
|
||||
local p = require 'tokyodark.palette'
|
||||
|
||||
function M.setup()
|
||||
vim.g.terminal_color_0 = p.black
|
||||
Reference in New Issue
Block a user