diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index 466a662..2bde210 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -1,6 +1,7 @@ {{- $name := promptStringOnce . "name" "請輸入您的姓名" -}} {{- $email := promptStringOnce . "email" "輸入您的Email地址" -}} {{- $isServer := promptBoolOnce . "isServer" "Does this machine is Server" -}} +{{- $enableSixel := promptBoolOnce . "enableSixel" "Is enable terminal output with sixel" -}} {{- $enableGUI := promptBoolOnce . "enableGUI" "Does this machine have a GUI" -}} {{- $enableYcm := promptBoolOnce . "enableYcm" "Is enable Vim YCM compatible (Will use 2.7GB)" -}} sourceDir = "~/.local/share/chezmoi" @@ -9,5 +10,6 @@ sourceDir = "~/.local/share/chezmoi" name = {{ $name | quote }} email = {{ $email | quote }} serverStyle = {{ $isServer }} + enableSixel = {{ not $enableSixel }} {{/* TODO: packages.toml還沒處理 */}} noGUI = {{ not $enableGUI }} enableYcm = {{ $enableYcm }} diff --git a/.chezmoiignore b/.chezmoiignore index 6fc5ce4..017d9ea 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -4,6 +4,10 @@ chezmoi.code-workspace dconf.ini +{{ if not .enableSixel }} +.config/nvim/lua/plugins/components/image.lua +{{ end }} + {{/* ---- 沒有圖形界面 ---------------------------------------------------- */ -}} {{ if .noGUI }} .config/iterm2/ diff --git a/dot_config/ranger/rc.conf b/dot_config/ranger/rc.conf.tmpl similarity index 72% rename from dot_config/ranger/rc.conf rename to dot_config/ranger/rc.conf.tmpl index b70f559..0ff7049 100644 --- a/dot_config/ranger/rc.conf +++ b/dot_config/ranger/rc.conf.tmpl @@ -1,3 +1,5 @@ +{{ if .enableSixel }} set preview_images true set preview_images_method ueberzug +{{ end }} default_linemode devicons