From 7ef0a07c1774bbf25dec2747cbdedbb70783984a Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 10 Jul 2024 04:50:29 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Style=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - More polished style config --- lua/config/neovide.lua | 2 -- lua/config/style.lua | 30 ++++++++++-------------------- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/lua/config/neovide.lua b/lua/config/neovide.lua index 5d23eb6..35e9c5b 100644 --- a/lua/config/neovide.lua +++ b/lua/config/neovide.lua @@ -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 diff --git a/lua/config/style.lua b/lua/config/style.lua index 596b5a6..f6de71d 100644 --- a/lua/config/style.lua +++ b/lua/config/style.lua @@ -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 \ No newline at end of file +vim.g.have_nerd_font = true + +-- Set transparency +vim.cmd(":TransparentDisable") \ No newline at end of file