mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 11:40:37 +00:00
fix(wezterm): change background color to #1C1F26 and improve padding
feat(wezterm): add support for neovim colorscheme
This commit is contained in:
@@ -3,7 +3,7 @@ local wezterm = require("wezterm")
|
|||||||
local config = wezterm.config_builder()
|
local config = wezterm.config_builder()
|
||||||
|
|
||||||
config.automatically_reload_config = true
|
config.automatically_reload_config = true
|
||||||
config.enable_tab_bar = false
|
config.enable_tab_bar = true
|
||||||
config.scrollback_lines = 10000
|
config.scrollback_lines = 10000
|
||||||
config.use_dead_keys = false
|
config.use_dead_keys = false
|
||||||
config.window_close_confirmation = "NeverPrompt"
|
config.window_close_confirmation = "NeverPrompt"
|
||||||
@@ -14,37 +14,33 @@ config.font = wezterm.font("FiraCode Nerd Font", { weight = 450, stretch = "Norm
|
|||||||
config.font_size = 14
|
config.font_size = 14
|
||||||
config.window_background_opacity = 1
|
config.window_background_opacity = 1
|
||||||
config.background = {
|
config.background = {
|
||||||
{
|
{
|
||||||
source = {
|
source = {
|
||||||
Color = "#1C1F26",
|
Color = "#1C1F26",
|
||||||
},
|
},
|
||||||
width = "100%",
|
width = "100%",
|
||||||
height = "100%",
|
height = "100%",
|
||||||
opacity = .95,
|
opacity = 0.95,
|
||||||
|
},
|
||||||
}
|
|
||||||
}
|
}
|
||||||
config.window_padding = {
|
config.window_padding = {
|
||||||
left = 3,
|
left = 3,
|
||||||
right = 3,
|
right = 3,
|
||||||
top = 20,
|
top = 10,
|
||||||
bottom = 0,
|
bottom = 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local function load_neovim_colorscheme()
|
local function load_neovim_colorscheme()
|
||||||
-- Colorscheme
|
-- Colorscheme
|
||||||
local file = io.open(wezterm.config_dir .. "/colorscheme", "r")
|
local file = io.open(wezterm.config_dir .. "/colorscheme", "r")
|
||||||
if file then
|
if file then
|
||||||
config.color_scheme = file:read("*a")
|
config.color_scheme = file:read("*a")
|
||||||
file:close()
|
file:close()
|
||||||
else
|
else
|
||||||
config.color_scheme = 'Catppuccin Mocha'
|
config.color_scheme = "Catppuccin Mocha"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
load_neovim_colorscheme()
|
load_neovim_colorscheme()
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
Reference in New Issue
Block a user