🎨 Style cleanup

- More polished style config
This commit is contained in:
2024-07-10 04:50:29 -04:00
parent 55bf4d3387
commit 7ef0a07c17
2 changed files with 10 additions and 22 deletions
-2
View File
@@ -5,8 +5,6 @@
vim.g.neovide_refresh_rate = 170
vim.g.neovide_transparency = 0.85
vim.g.neovide_window_blurred = true
-- Neovide has its own transparency
vim.cmd(":TransparentDisable")
-- cursor fx
vim.g.neovide_cursor_vfx_mode = "railgun"
vim.g.neovide_cursor_smooth_blink = true
+10 -20
View File
@@ -1,28 +1,18 @@
-- -----------------------------------------------------------------------------
-- ---------------------------------- 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
-- Set the palette
if os.getenv("CATPPUCCIN_PALETTE") then
TMEMEPALETTE = require("catppuccin.palettes").get_palette(os.getenv("CATPPUCCIN_PALETTE"))
end
-- Apply the colorscheme
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
vim.g.have_nerd_font = true
-- Set transparency
vim.cmd(":TransparentDisable")