move old nvim config

This commit is contained in:
Barrett Ruth 2026-02-10 18:44:55 -05:00
parent c9ae53e233
commit e7740e9989
27 changed files with 492 additions and 704 deletions

View file

@ -2,8 +2,23 @@ local o, opt = vim.o, vim.opt
o.autowrite = true
local f, background = io.open(vim.env.HOME .. '/.zshenv', 'r'), 'light'
if f then
local content = f:read('*a')
f:close()
local theme = content:match('export THEME=(%S+)')
background = theme
elseif vim.env.THEME then
background = vim.env.THEME
end
o.background = background == 'daylight' and 'light' or 'dark'
o.breakindent = true
o.cursorline = true
o.cmdheight = 0
o.conceallevel = 0
opt.diffopt:append('linematch:60')