Add git-blame and update colorscheme approach

This commit is contained in:
Alex Selimov 2025-09-08 09:51:54 -04:00
parent cc49dc9324
commit 729f90b370
No known key found for this signature in database
GPG key ID: BC03C17FF5CFFFD2
4 changed files with 17 additions and 17 deletions

View file

@ -42,14 +42,3 @@ vim.opt.tw = 100
vim.opt.colorcolumn = "+1"
vim.opt.termguicolors = true
vim.opt.pumheight = 5
-- Light mode check
local function file_exists(name)
local f = io.open(name, "r")
return f ~= nil and io.close(f)
end
local home = os.getenv("HOME")
if file_exists(home .. "/.config/nvim/light_mode") then
vim.opt.background = "light"
end

View file

@ -15,6 +15,13 @@ return {
cond = vim.fn.executable("cmake") == 1,
},
{
"f-person/git-blame.nvim",
opts = {
enabled = false,
},
},
{
"Exafunction/windsurf.vim",
event = "BufEnter",
@ -34,4 +41,3 @@ return {
version = "*",
},
}

View file

@ -8,6 +8,10 @@ return {
dependencies = "rktjmp/lush.nvim",
config = function()
vim.cmd.colorscheme("zenwritten")
local term_bg = os.getenv("TERM_BACKGROUND")
if term_bg == "light" then
vim.opt.background = "light"
end
end,
},
@ -132,4 +136,4 @@ return {
},
},
},
}
}