folke / tokyonight.nvim

🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.
Apache License 2.0
6.42k stars 433 forks source link

Request feature: customation of cursor highlighting #100

Closed changyiyao closed 4 months ago

changyiyao commented 3 years ago

Need the configuration like this one: https://github.com/sainnhe/everforest/blob/master/doc/everforest.txt#L213-L225

dualfade commented 2 years ago

Agreed. When using the theme "storm" the cursorline is the same as the background color, hence you cannot see it. Otherwise this is truly amazing !! awesome work ;)

Update: To be clear this is only when you do not have "tokyonight_transparent = true" enabled. So a solid color background like "storm" the cursorline vanishes. it's the same color. I will use this for not. Not a show stopper. I am very impressed with this theme. Very much so !!!!

patrykk21 commented 2 years ago

You can change it like this...

require("tokyonight").setup({
  transparent = true,
  styles = {
    sidebars = "transparent",
    floats = "transparent"
  },
  on_highlights = function(hl, colors)
    hl.LineNr = {
      fg = colors.yellow
    }
    hl.CursorLineNr = {
      fg = colors.yellow
    }
  end
})

vim.cmd("colorscheme tokyonight")
isturiz commented 1 year ago
Screenshot 2023-07-26 at 11 41 52 AM

How can I change this? which variable is necessary to modify?

with the current configuration it is unreadable when I have the cursor over a variable.

amkarkhi commented 10 months ago

@isturiz

on_highlights = function(highlights, colors)
   highlights.LspReferenceWrite = {
      bg = "#3b4261",
      fg = "#d8dee9",
   }
end

you can set a bg and fg for this one.