main
parent
4de946d490
commit
0107052823
@ -0,0 +1,12 @@
|
|||||||
|
(local wezterm (require "wezterm"))
|
||||||
|
(local config (wezterm.config_builder))
|
||||||
|
|
||||||
|
; (tset config :color_scheme "Apprentice (base16)")
|
||||||
|
(tset config :color_scheme "Ashes (base16)")
|
||||||
|
|
||||||
|
(tset config :enable_tab_bar false)
|
||||||
|
|
||||||
|
(tset config :font (wezterm.font "Source Code Pro"))
|
||||||
|
(tset config :font_size 13)
|
||||||
|
|
||||||
|
config
|
@ -0,0 +1,24 @@
|
|||||||
|
-- Handle mismatch between homebrew's version of Lua and wezterm's version
|
||||||
|
local lVer = _VERSION:match("Lua (.+)$")
|
||||||
|
local luarocks = "/opt/homebrew/bin/luarocks"
|
||||||
|
|
||||||
|
function execute(prog)
|
||||||
|
local fh = io.popen(prog)
|
||||||
|
return fh:read("*a")
|
||||||
|
end
|
||||||
|
|
||||||
|
package.path = package.path .. ";" .. execute(
|
||||||
|
luarocks .. " --lua-version " .. lVer .. " path --lr-path"
|
||||||
|
):gsub("\n", "")
|
||||||
|
package.cpath = package.cpath .. ";" .. execute(
|
||||||
|
luarocks .. " --lua-version " .. lVer .. " path --lr-cpath"
|
||||||
|
):gsub("\n", "")
|
||||||
|
|
||||||
|
fennel = require "fennel"
|
||||||
|
table.insert(package.loaders or package.searchers, fennel.searcher)
|
||||||
|
|
||||||
|
-- local wezterm = require "wezterm"
|
||||||
|
-- wezterm.log_error(package.path)
|
||||||
|
|
||||||
|
local home = os.getenv("HOME")
|
||||||
|
return fennel.dofile(home .. "/.config/wezterm/wezterm.fnl")
|
Loading…
Reference in new issue