Skip to content
项目

关于

一个使用 Lua 编写的简洁深色 Neovim 主题。

开发工具

这些数字如何统计

可以做什么

  • Detailed Tree-sitter and LSP semantic highlighting
  • Plugin highlight support
  • Customizable colors, syntax styles, gamma, and transparency
  • Matching terminal colors, with exports for Kitty, Alacritty, Ghostty, iTerm2, Konsole, and WezTerm

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

tokyodark.nvim

tokyodark.nvim screenshot

A clean, customizable dark colorscheme for Neovim, written in Lua.

✨ Features

  • Detailed Tree-sitter and LSP semantic highlighting
  • Plugin highlight support
  • Customizable colors, syntax styles, gamma, and transparency
  • Matching terminal colors, with exports for Kitty, Alacritty, Ghostty, iTerm2, Konsole, and WezTerm

📦 Installation

Add the plugin with vim.pack:

vim.pack.add({
    { src = "https://github.com/tiagovla/tokyodark.nvim" },
})

require("tokyodark").setup() -- optional; pass options to customize
vim.cmd.colorscheme("tokyodark")

⚙️ Configuration

All options are optional. Defaults:

require("tokyodark").setup({
    transparent_background = false,
    gamma = 1.00,
    styles = {
        comments = { italic = true },
        keywords = { italic = true },
        identifiers = { italic = true },
        functions = {},
        variables = {},
    },
    custom_highlights = {},
    custom_palette = {},
    terminal_colors = true,
})

vim.cmd.colorscheme("tokyodark")
Custom palette and highlights
require("tokyodark").setup({
    custom_palette = {
        purple = "#afa8ea",
    },
    custom_highlights = function(_, palette)
        return {
            ["@variable"] = { fg = palette.purple },
        }
    end,
})

💡 Inspiration

探索相关项目

加载中…