Public Access
updated some stuff
updated theme, now auto-switches based on kitty theme. added some tools for plaintext writing.
This commit is contained in:
@@ -29,6 +29,24 @@ return {
|
||||
dim_inactive = false,
|
||||
transparent_mode = false,
|
||||
})
|
||||
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
|
||||
local filepath = os.getenv("HOME") .. "/.config/kitty/current-theme.conf"
|
||||
local file = io.open(filepath, "r")
|
||||
|
||||
if not file then
|
||||
vim.notify("Could not open kitty theme file: " .. filepath, vim.log.levels.ERROR)
|
||||
return
|
||||
end
|
||||
|
||||
local first_line = file:read("*l")
|
||||
file:close()
|
||||
|
||||
if first_line and first_line:lower():find("light") then
|
||||
vim.o.background = "light"
|
||||
else
|
||||
vim.o.background = "dark"
|
||||
end
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user