Compare commits

..

No commits in common. "d220d0ffa2cac915314a65c0d73ab8082ac5bce8" and "e60099033bfe70243ce5e6b3c8e5f5a436d6dde5" have entirely different histories.

4 changed files with 3 additions and 38 deletions

View File

@ -45,8 +45,6 @@ apt = [
'eza',
'neovim',
'ueberzug',
'ripgrep',
'tree-sitter-cli',
]
# Debian -----------------------------------------------------------------------
@ -67,8 +65,6 @@ apt = [
'vim',
'git',
'gcc',
'ripgrep',
'tree-sitter-cli',
]
apt_13 = [
@ -96,15 +92,12 @@ pacman = [
'cmake',
'zsh',
'lsix',
'imagemagick',
'ueberzugpp',
'eza',
'grc',
'zellij',
'ranger',
'neovim',
'ripgrep',
'tree-sitter',
]
pacman_nogui = [
'vim',
@ -142,7 +135,6 @@ pacman = [
'cmake',
'zsh',
'lsix',
'imagemagick',
'ueberzugpp',
'eza',
'grc',
@ -154,10 +146,6 @@ pacman = [
'nodejs',
'npm',
'jdk-openjdk',
'ripgrep',
'tree-sitter',
'tree-sitter-bash',
'tree-sitter-cli',
]
pacman_nogui = [
'vim',

View File

@ -63,7 +63,6 @@ return {
{
"eero-lehtinen/oklch-color-picker.nvim",
enabled = require("tools.gui").is_graphical(),
event = "VeryLazy",
version = "*",
keys = {

View File

@ -2,13 +2,11 @@ return {
-- 測試狀況Linux Fcitx5 Wayland 可用 / macOS 15 不可用
-- {
-- "Freed-Wu/ime.nvim",
-- enabled = require("tools.gui").is_graphical(),
-- },
-- 測試狀況Linux Fcitx5 Wayland 可用 / macOS 15 可用
{
"keaising/im-select.nvim",
enabled = require("tools.gui").is_graphical(),
config = function()
require("im_select").setup({})
end,
@ -17,18 +15,17 @@ return {
-- 測試狀況Linux Fcitx5 Wayland 可用
-- {
-- "pysan3/fcitx5.nvim",
-- enabled = require("tools.gui").is_graphical(),
-- cond = function()
-- return vim.fn.executable("fcitx5-remote") == 1
-- end,
-- event = { "ModeChanged" }, -- 在模式改變時載入插件
-- config = function()
-- require("fcitx5").setup() -- 初始化插件
--
-- -- 以下是手動指定規則
-- -- local en = "keyboard-us"
-- -- local tw = "chewing"
--
-- -- require("fcitx5").setup({
-- -- imname = {
-- -- norm = en,
@ -37,7 +34,7 @@ return {
-- -- },
-- -- remember_prior = false,
-- -- })
--
-- -- -- If you are using `jk` to escape, map 全角のjk.
-- -- vim.cmd([[
-- -- inoremap <silent> <Esc>

View File

@ -1,19 +0,0 @@
local M = {}
--- 當前終端機環境是否在圖形環境裡面Linux / macOS
--- @return boolean is_gui
function M.is_graphical()
local env = vim.env
local term_program = env.TERM_PROGRAM -- macOS GUI 終端機常見
local display = env.DISPLAY -- Linux X11
local wayland = env.WAYLAND_DISPLAY -- Linux Wayland
local ssh = env.SSH_CONNECTION or env.SSH_CLIENT
if ssh then
return false
end
return term_program or display or wayland and true or false
end
return M