Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(base): signcolumn, foldcolumn with dim_inactive and add fzflua borderless highlights #631

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,30 @@ require("tokyonight").setup({

</details>

<details>
<summary>Borderless Fzf-Lua</summary>

```lua
require("tokyonight").setup({
on_highlights = function(hl, c)
hl.FzfLuaBorder = {
bg = c.bg_float,
fg = c.bg_float,
}
hl.FzfLuaFzfBorder = {
bg = c.bg_float,
fg = c.border_highlight,
}
hl.FzfLuaFzfGutter = {
bg = c.bg_float,
fg = c.bg_float,
}
end,
})
```

</details>

<details>
<summary>Fix <code>undercurls</code> in Tmux</summary>

Expand Down
8 changes: 5 additions & 3 deletions lua/tokyonight/groups/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ function M.get(c, opts)
EndOfBuffer = { fg = c.bg }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
ErrorMsg = { fg = c.error }, -- error messages on the command line
VertSplit = { fg = c.border }, -- the column separating vertically split windows
WinSeparator = { fg = c.border, bold = true }, -- the column separating vertically split windows
WinSeparator = { fg = opts.dim_inactive and c.fg_gutter or c.border, bg = opts.dim_inactive and c.bg_dark or c.none, bold = true }, -- the column separating vertically split windows
Folded = { fg = c.blue, bg = c.fg_gutter }, -- line used for closed folds
FoldColumn = { bg = opts.transparent and c.none or c.bg, fg = c.comment }, -- 'foldcolumn'
SignColumn = { bg = opts.transparent and c.none or c.bg, fg = c.fg_gutter }, -- column where |signs| are displayed
FoldColumn = { fg = c.comment }, -- 'foldcolumn'
CursorLineFold = { fg = c.orange, bold = true }, -- Like FoldColumn when 'cursorline' or 'relativenumber' is set for the cursor line.
SignColumn = { fg = c.fg_gutter }, -- column where |signs| are displayed
CursorLineSign = { fg = c.orange, bold = true }, -- Like SignColumn when 'cursorline' or 'relativenumber' is set for the cursor line.
SignColumnSB = { bg = c.bg_sidebar, fg = c.fg_gutter }, -- column where |signs| are displayed
Substitute = { bg = c.red, fg = c.black }, -- |:substitute| replacement text highlighting
LineNr = { fg = c.fg_gutter }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
Expand Down