fix common.sh: EDITOR為固定
This commit is contained in:
parent
c3d171a77e
commit
cc84f36991
@ -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"
|
export PATH="$HOME/.local/share/gem/ruby/3.3.0/bin:$PATH"
|
||||||
|
|
||||||
{{/* ---- 設定環境變數 ---------------------------------------------------- */ -}}
|
{{/* ---- 設定環境變數 ---------------------------------------------------- */ -}}
|
||||||
{{- /* 設定預設編輯器 */ -}}
|
# 設定預設編輯器
|
||||||
|
{{ if false -}} {{/* 不執行 */}}
|
||||||
{{ if eq .chezmoi.os "linux" }}
|
{{ if eq .chezmoi.os "linux" }}
|
||||||
# linux config
|
|
||||||
[ -n "$DISPLAY" ] && export EDITOR=kate|| export EDITOR=nvim
|
[ -n "$DISPLAY" ] && export EDITOR=kate|| export EDITOR=nvim
|
||||||
{{ else }}
|
{{ else }}
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
# non-linux config
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
export EDITOR=nvim
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
|
|
||||||
{{/* ---- 設定ailas ------------------------------------------------------ */ -}}
|
{{/* ---- 設定ailas ------------------------------------------------------ */ -}}
|
||||||
|
@ -27,17 +27,6 @@ require("lazy").setup({
|
|||||||
hererocks = true, -- recommended if you do not have global installation of Lua 5.1.
|
hererocks = true, -- recommended if you do not have global installation of Lua 5.1.
|
||||||
},
|
},
|
||||||
spec = {
|
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 資料夾中的所有插件
|
-- 自動載入 plugins 資料夾中的所有插件
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
{ import = "plugins.themes.nightfox" }, -- 自訂配色
|
{ import = "plugins.themes.nightfox" }, -- 自訂配色
|
||||||
|
Loading…
x
Reference in New Issue
Block a user