Compare commits

...

10 Commits

Author SHA1 Message Date
14bc1b3e59 feat: add telescope custom highlights 2024-06-05 15:11:53 -03:00
0905e1cd9a feat: make float borders more visible 2024-06-05 15:10:06 -03:00
ba538ab69e fix: Conceal highlight not respecting transparent background (#40) 2024-04-29 17:20:31 -03:00
Blake Wingard
fa25db55c4 feat: neovim v0.9 LSP highlighting (#28)
* Updated highlights with Neovim V0.9 LSP highlighting

* Removed test init.lua file

* Moved new highlight definitions to M.highlights

* Removed TableConcat
2024-03-27 17:58:21 -04:00
a19cef29a1 feat: add markdown treesitter support 2024-03-15 01:16:25 -04:00
2db17d9eb2 ci: improve the issue template 2024-03-14 22:59:48 -04:00
95b5f33594 ci: add bug issue template 2024-03-14 22:48:43 -04:00
afcfe84556 feat: add minimal config 2024-03-14 22:32:16 -04:00
Shreyas A S
a21ec7417b fix(#32): add normal mode color for lualine_z section (#34) 2024-03-13 09:25:40 -04:00
Shreyas A S
78a225ba2f fix(#33): add command mode color for lualine (#35) 2024-03-13 09:24:35 -04:00
4 changed files with 117 additions and 14 deletions

29
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Bug report
description: Report a problem in tokyodark.nvim
labels: [bug]
body:
- type: markdown
attributes:
value: |
Use the minimal configuration [config.lua](https://github.com/tiagovla/tokyodark.nvim/blob/master/.github/config.lua) with `NVIM_APPNAME=tokyodark nvim -u config.lua`.
- type: textarea
attributes:
label: "Neovim version"
description: "Please report the neovim version you are using."
validations:
required: true
- type: textarea
attributes:
label: "Minimal configuration"
description: "Include a minimal configuration to reproduce the problem with relevant plugins if the minimum configuration provided is not enough."
validations:
required: false
- type: textarea
attributes:
label: "Description"
description: "A short description of the problem you are reporting."
validations:
required: true

37
.github/config.lua vendored Normal file
View File

@@ -0,0 +1,37 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"tiagovla/tokyodark.nvim",
config = function()
require("tokyodark").setup()
require("tokyodark").colorscheme()
end,
},
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local treesitter = require("nvim-treesitter.configs")
treesitter.setup({
ensure_installed = "all",
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
end,
},
})

View File

@@ -29,11 +29,12 @@ local tokyo_dark = {
c = { fg = colors.fg, bg = colors.bg },
x = { fg = colors.fg, bg = colors.bg },
y = { fg = colors.fg, bg = colors.bg },
z = { fg = colors.fg, bg = colors.bg },
z = { fg = colors.bg, bg = colors.green, gui = "bold" },
},
visual = { a = { fg = colors.bg, bg = colors.purple, gui = "bold" } },
replace = { a = { fg = colors.bg, bg = colors.red, gui = "bold" } },
insert = { a = { fg = colors.bg, bg = colors.blue, gui = "bold" } },
command = { a = { fg = colors.bg, bg = colors.yellow, gui = "bold" } },
}
local mt = {}

View File

@@ -63,7 +63,7 @@ M.highlights = {
ColorColumn = { bg = p.bg1 },
CursorLineNr = { fg = p.fg },
LineNr = { fg = p.bg4 },
Conceal = { fg = p.grey, bg = p.bg1 },
Conceal = { fg = p.grey, bg = p.bg1 } + transparent_bg,
DiffAdd = { fg = p.none, bg = p.diff_add },
DiffChange = { fg = p.none, bg = p.diff_change },
DiffDelete = { fg = p.none, bg = p.diff_delete },
@@ -106,6 +106,8 @@ M.highlights = {
debugBreakpoint = { fg = p.bg0, bg = p.red },
ToolbarButton = { fg = p.bg0, bg = p.bg_blue },
FocusedSymbol = { bg = p.bg3 },
FloatBorder = { fg = p.bg4 },
FloatTitle = { fg = p.blue },
Type = { fg = p.blue } + styles.keywords,
Structure = { fg = p.blue } + styles.keywords,
@@ -320,6 +322,20 @@ M.highlights = {
LspOperator = { link = "@operator" },
LspDecorator = { link = "@symbol" },
LspDeprecated = { link = "@text.strike" },
["@lsp.type.namespace"] = { link = "@namespace", default = true },
["@lsp.type.type"] = { link = "@type", default = true },
["@lsp.type.class"] = { link = "@type", default = true },
["@lsp.type.enum"] = { link = "@type", default = true },
["@lsp.type.interface"] = { link = "@type", default = true },
["@lsp.type.struct"] = { link = "@structure", default = true },
["@lsp.type.parameter"] = { link = "@parameter", default = true },
["@lsp.type.variable"] = { link = "@variable", default = true },
["@lsp.type.property"] = { link = "@property", default = true },
["@lsp.type.enumMember"] = { link = "@constant", default = true },
["@lsp.type.function"] = { link = "@function", default = true },
["@lsp.type.method"] = { link = "@method", default = true },
["@lsp.type.macro"] = { link = "@macro", default = true },
["@lsp.type.decorator"] = { link = "@function", default = true },
-- cmp
CmpItemKindDefault = { fg = p.blue },
@@ -368,34 +384,54 @@ M.highlights = {
GitSignsDeleteLn = { fg = p.red },
GitSignsDeleteNr = { fg = p.red },
-- telescope
TelescopeBorder = { link = "FloatBorder" },
TelescopePreviewBorder = { fg = p.bg4 },
TelescopePreviewTitle = { fg = p.blue },
TelescopePromptBorder = { fg = p.bg4 },
TelescopePromptTitle = { fg = p.blue },
TelescopeResultsBorder = { fg = p.bg4 },
TelescopeResultsTitle = { fg = p.blue },
-- markdown
markdownBlockquote = { fg = p.grey },
markdownBold = { fg = p.none, bold = true },
markdownBoldDelimiter = { fg = p.grey },
markdownCode = { fg = p.yellow },
markdownCodeBlock = { fg = p.yellow },
markdownCodeDelimiter = { fg = p.green },
markdownH1 = { fg = p.red, bold = true },
markdownH2 = { fg = p.red, bold = true },
markdownH3 = { fg = p.red, bold = true },
markdownH4 = { fg = p.red, bold = true },
markdownH5 = { fg = p.red, bold = true },
markdownH6 = { fg = p.red, bold = true },
markdownCodeDelimiter = { fg = p.grey },
markdownH1 = { fg = p.yellow, bold = true },
markdownH2 = { fg = p.yellow, bold = true },
markdownH3 = { fg = p.yellow, bold = true },
markdownH4 = { fg = p.yellow, bold = true },
markdownH5 = { fg = p.yellow, bold = true },
markdownH6 = { fg = p.yellow, bold = true },
markdownHeadingDelimiter = { fg = p.grey },
markdownHeadingRule = { fg = p.grey },
markdownId = { fg = p.yellow },
markdownIdDeclaration = { fg = p.red },
markdownIdDeclaration = { fg = p.yellow },
markdownItalic = { fg = p.none, italic = true },
markdownItalicDelimiter = { fg = p.grey, italic = true },
markdownLinkDelimiter = { fg = p.grey },
markdownLinkText = { fg = p.red },
markdownLinkText = { fg = p.purple, underline = true },
markdownLinkTextDelimiter = { fg = p.grey },
markdownListMarker = { fg = p.red },
markdownOrderedListMarker = { fg = p.red },
markdownListMarker = { fg = p.purple },
markdownOrderedListMarker = { fg = p.purple },
markdownRule = { fg = p.purple },
markdownUrl = { fg = p.blue, underline = true },
markdownUrlDelimiter = { fg = p.grey },
markdownUrlTitleDelimiter = { fg = p.green },
markdownUrlTitleDelimiter = { fg = p.purple },
["@markup"] = { link = "@none" },
["@markup.heading"] = { fg = p.yellow, bold = true },
["@markup.link.label"] = { fg = p.purple, underline = true },
["@markup.link.url"] = { fg = p.blue, underline = true },
["@markup.list"] = { fg = p.purple },
["@markup.list.checked"] = { fg = p.blue },
["@markup.list.unchecked"] = { fg = p.blue },
["@markup.strikethrough"] = { strikethrough = true },
["@markup.strong"] = { bold = true },
["@markup.italic"] = { italic = true },
["@markup.underline"] = { underline = true },
-- scala
scalaNameDefinition = { fg = p.fg },