Better visible visual selection background color

This commit is contained in:
Oliver Ladner 2024-01-18 15:15:05 +01:00
commit b3c94daa67

View file

@ -1,49 +1,51 @@
return {
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function()
local tokyonight = require('tokyonight')
tokyonight.setup({
styles = {
comments = { italic = true },
},
on_colors = function(colors)
-- Brighten up comments a bit
colors.comment = '#888fac'
end,
-- Remove borders from Telescope windows
on_highlights = function(hl, c)
local prompt = '#4e3e6c'
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = prompt,
fg = prompt,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
})
end
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function()
local tokyonight = require("tokyonight")
tokyonight.setup({
styles = {
comments = { italic = true },
},
on_colors = function(colors)
-- Brighten up comments a bit
colors.comment = "#888fac"
-- Better visible visual selection background color
colors.bg_visual = "#e82a86"
end,
-- Remove borders from Telescope windows
on_highlights = function(hl, c)
local prompt = "#4e3e6c"
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = prompt,
fg = prompt,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
})
end,
}