neovim custom invero light-theme #1

Merged
tomas.mirchev merged 15 commits from light-theme into main 2025-09-26 03:06:13 +00:00
5 changed files with 30 additions and 20 deletions
Showing only changes of commit 23309c9a12 - Show all commits

View File

@ -5,23 +5,27 @@ vim.api.nvim_create_autocmd("TextYankPost", {
end,
})
-- cursorline only on active window
vim.api.nvim_create_autocmd({ "WinEnter" }, {
callback = function()
local ft = vim.bo.filetype
if ft ~= "NvimTree" then
vim.wo.cursorline = true
end
end,
})
vim.api.nvim_create_autocmd({ "WinLeave" }, {
callback = function()
local ft = vim.bo.filetype
if ft ~= "NvimTree" then
vim.wo.cursorline = false
end
end,
})
-- Show cursorline only in the active window
-- vim.api.nvim_create_autocmd({ "WinEnter", "BufEnter" }, {
-- callback = function()
-- local ft = vim.bo.filetype
-- vim.notify("enter: " .. ft .. " - " .. vim.bo.buftype)
-- -- if not ft:match("^Telescope") and ft ~= "NvimTree" then
-- -- vim.wo.cursorline = true
-- -- end
-- end,
-- })
--
-- vim.api.nvim_create_autocmd({ "WinLeave", "BufLeave" }, {
-- callback = function()
-- local ft = vim.bo.filetype
-- vim.notify("exit: " .. ft .. " - " .. vim.bo.buftype)
-- -- if not ft:match("^Telescope") and ft ~= "NvimTree" then
-- -- vim.wo.cursorline = false
-- -- end
-- end,
-- })
-- Reload Invero colorscheme without restarting Neovim
vim.api.nvim_create_user_command("ReloadInvero", function()

View File

@ -14,7 +14,7 @@ return {
end,
},
{ "nvim-telescope/telescope-ui-select.nvim" },
{ "nvim-tree/nvim-web-devicons", enabled = vim.g.have_nerd_font },
-- { "nvim-tree/nvim-web-devicons", enabled = vim.g.have_nerd_font },
},
config = function()
require("telescope").setup({

View File

@ -3,8 +3,7 @@ local M = {}
function M.get(C)
return {
-- TelescopeBorder = { fg = C.muted, bg = C.green },
-- TelescopeNormal = { fg = C.text, bg = C.base, ctermbg = 1 },
TelescopePrompt = { fg = C.text, bg = C.base, ctermbg = 1 },
TelescopePrompt = { fg = C.text, bg = C.green },
-- TelescopePromptPrefix = { fg = C.accent, bg = C.red },
-- TelescopeSelection = { bg = C.surface },
}

View File

@ -3,6 +3,11 @@ local M = {}
function M.get(C)
local theme = {
["@comment"] = { fg = C.muted, italic = true },
["@spell"] = { fg = C.syntax },
["@markup"] = { fg = C.syntax },
["@text"] = { fg = C.syntax },
["@property"] = { fg = C.syntax },
["@conceal"] = { fg = C.syntax },
}
for _, hl in ipairs(vim.fn.getcompletion("@", "highlight")) do

View File

@ -63,8 +63,10 @@ function M.apply(theme)
for k, v in pairs(opts) do
if k == "fg" then
hl.fg = v
hl.ctermfg = v
elseif k == "bg" then
hl.bg = v
hl.ctermbg = v
else
hl[k] = v -- bold, italic, underline, sp, etc.