Files
neovim-config/lua/config/style.lua
T
rootiest c0a3511384 🧙 Major Restructuring Update
- Plugins are now properly organized into separate folders.
- General configurations are also now organized by category into
folders.
- Now using lazyvim-defined plugins whenever possible for a more
consistent and clean experience.
- Duplicate manual plugin definitions were removed.
- Extensive testing has been performed to ensure config works on fresh
installs and a variety of systems.
- Further slimming of manual plugins and an updated dependency list is
forthcoming.
2024-07-08 10:17:08 -04:00

28 lines
1.1 KiB
Lua

-- -----------------------------------------------------------------------------
-- ---------------------------------- Style ------------------------------------
-- -----------------------------------------------------------------------------
-- Apply the default colorscheme
if os.getenv("KITTY_THEME") then
local kitty_theme = os.getenv("KITTY_THEME")
-- Set the colorscheme palette
if kitty_theme:find("catppuccin") then
THEMEPALETTE = require("catppuccin.palettes").get_palette(kitty_theme:sub(12))
else
if vim.o.background == "dark" then
THEMEPALETTE = require("catppuccin.palettes").get_palette("mocha")
else
THEMEPALETTE = require("catppuccin.palettes").get_palette("latte")
end
end
else
if vim.o.background == "dark" then
THEMEPALETTE = require("catppuccin.palettes").get_palette("mocha")
else
THEMEPALETTE = require("catppuccin.palettes").get_palette("latte")
end
end
vim.cmd.colorscheme(kitty_theme or "catppuccin-frappe")
-- Set GUI font
vim.opt.guifont = "MonaspiceKr Nerd Font Mono:#e-subpixelantialias:h13"
vim.g.have_nerd_font = true