Public Access
updated theme, now auto-switches based on kitty theme. added some tools for plaintext writing.
53 lines
1.2 KiB
Lua
53 lines
1.2 KiB
Lua
return {
|
|
"ellisonleao/gruvbox.nvim",
|
|
name = "gruvbox",
|
|
lazy = false,
|
|
priority = 1000,
|
|
config = function()
|
|
-- Default options:
|
|
require("gruvbox").setup({
|
|
terminal_colors = true, -- add neovim terminal colors
|
|
undercurl = true,
|
|
underline = true,
|
|
bold = true,
|
|
italic = {
|
|
strings = true,
|
|
emphasis = true,
|
|
comments = true,
|
|
operators = false,
|
|
folds = true,
|
|
},
|
|
strikethrough = true,
|
|
invert_selection = false,
|
|
invert_signs = false,
|
|
invert_tabline = false,
|
|
invert_intend_guides = false,
|
|
inverse = true, -- invert background for search, diffs, statuslines and errors
|
|
contrast = "", -- can be "hard", "soft" or empty string
|
|
palette_overrides = {},
|
|
overrides = {},
|
|
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
|
|
}
|