feat(wezterm): update wezterm.fnl
Realign Use more macros
This commit is contained in:
parent
d0858c5547
commit
a73cd43bbf
1 changed files with 24 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
||||||
(local wezterm (require :wezterm))
|
(local wezterm (require :wezterm))
|
||||||
(local config (or (and wezterm.config_builder
|
(local config (if wezterm.config_builder
|
||||||
(wezterm.config_builder))
|
(wezterm.config_builder)
|
||||||
{}))
|
{}))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;
|
||||||
|
@ -11,32 +11,35 @@
|
||||||
(wezterm.font "FiraCode Nerd Font Mono"))
|
(wezterm.font "FiraCode Nerd Font Mono"))
|
||||||
|
|
||||||
(set config.harfbuzz_features
|
(set config.harfbuzz_features
|
||||||
[:liga
|
[:liga
|
||||||
:cv02 :cv19 :cv25 :cv26 :cv28 :cv30 :cv32
|
:cv02 :cv19 :cv25 :cv26 :cv28 :cv30 :cv32
|
||||||
:ss02 :ss03 :ss05 :ss07 :ss09
|
:ss02 :ss03 :ss05 :ss07 :ss09
|
||||||
:zero])
|
:zero])
|
||||||
|
|
||||||
(set config.freetype_render_target :Light)
|
(doto config
|
||||||
(set config.window_background_opacity 0.8)
|
(tset :freetype_render_target :Light)
|
||||||
(set config.window_background_image "")
|
(tset :window_background_opacity 0.8)
|
||||||
(set config.window_decorations :RESIZE)
|
(tset :window_background_image "")
|
||||||
(set config.window_close_confirmation :NeverPrompt)
|
(tset :window_decorations :RESIZE)
|
||||||
(set config.use_resize_increments false)
|
(tset :window_close_confirmation :NeverPrompt)
|
||||||
(set config.enable_scroll_bar false)
|
(tset :use_resize_increments false)
|
||||||
(set config.enable_tab_bar false)
|
(tset :enable_scroll_bar false)
|
||||||
(set config.adjust_window_size_when_changing_font_size false)
|
(tset :enable_tab_bar false)
|
||||||
(set config.window_padding {:left 0
|
(tset :window_padding {:left 0
|
||||||
:right 0
|
:right 0
|
||||||
:top 0
|
:top 0
|
||||||
:bottom 0})
|
:bottom 0})
|
||||||
|
(tset :adjust_window_size_when_changing_font_size false))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;
|
||||||
;;; Keybinds ;;;
|
;;; Keybinds ;;;
|
||||||
;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(fn keybind [mods key action]
|
(fn keybind [mods key action]
|
||||||
(when (= (type action) :table)
|
(local action (if (= (type action) :table)
|
||||||
(set action (wezterm.action action)))
|
(wezterm.action action)
|
||||||
|
;; else
|
||||||
|
action))
|
||||||
{: mods
|
{: mods
|
||||||
: key
|
: key
|
||||||
: action})
|
: action})
|
||||||
|
|
Loading…
Reference in a new issue