This commit is contained in:
Tomas Mirchev 2025-09-25 11:39:11 +03:00
parent dd738ade40
commit 23309c9a12
5 changed files with 30 additions and 20 deletions

View File

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

View File

@ -14,7 +14,7 @@ return {
end, end,
}, },
{ "nvim-telescope/telescope-ui-select.nvim" }, { "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() config = function()
require("telescope").setup({ require("telescope").setup({

View File

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

View File

@ -3,6 +3,11 @@ local M = {}
function M.get(C) function M.get(C)
local theme = { local theme = {
["@comment"] = { fg = C.muted, italic = true }, ["@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 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 for k, v in pairs(opts) do
if k == "fg" then if k == "fg" then
hl.fg = v
hl.ctermfg = v hl.ctermfg = v
elseif k == "bg" then elseif k == "bg" then
hl.bg = v
hl.ctermbg = v hl.ctermbg = v
else else
hl[k] = v -- bold, italic, underline, sp, etc. hl[k] = v -- bold, italic, underline, sp, etc.