diff --git a/.chezmoitemplates/common.sh.tmpl b/.chezmoitemplates/common.sh.tmpl index 600a6f1..94a125b 100644 --- a/.chezmoitemplates/common.sh.tmpl +++ b/.chezmoitemplates/common.sh.tmpl @@ -22,15 +22,16 @@ export PATH="/usr/local/lib/ruby/gems/3.3.0/bin:$PATH"¬ export PATH="$HOME/.local/share/gem/ruby/3.3.0/bin:$PATH" {{/* ---- 設定環境變數 ---------------------------------------------------- */ -}} -{{- /* 設定預設編輯器 */ -}} +# 設定預設編輯器 +{{ if false -}} {{/* 不執行 */}} {{ if eq .chezmoi.os "linux" }} -# linux config [ -n "$DISPLAY" ] && export EDITOR=kate|| export EDITOR=nvim {{ else }} export EDITOR=nvim -# non-linux config {{ end }} +{{ end -}} +export EDITOR=nvim export VISUAL=nvim {{/* ---- 設定ailas ------------------------------------------------------ */ -}} diff --git a/dot_config/nvim/exact_lua/exact_config/lazy.lua b/dot_config/nvim/exact_lua/exact_config/lazy.lua index 51a2e65..891bfbd 100644 --- a/dot_config/nvim/exact_lua/exact_config/lazy.lua +++ b/dot_config/nvim/exact_lua/exact_config/lazy.lua @@ -27,17 +27,6 @@ require("lazy").setup({ hererocks = true, -- recommended if you do not have global installation of Lua 5.1. }, spec = { - -- 先關閉此功能(目前在neo-tree無法work,而且會造成neovide出問題) - -- { - -- "3rd/image.nvim", - -- opts = {}, - -- config = function() - -- require("image").setup({ - -- backend = "ueberzug", -- or "ueberzug" - -- processor = "magick_rock", -- or "magick_rock" - -- }) - -- end, - -- }, -- 自動載入 plugins 資料夾中的所有插件 { import = "plugins" }, { import = "plugins.themes.nightfox" }, -- 自訂配色