minor fix

This commit is contained in:
js0ny 2025-07-08 21:50:22 +08:00
parent 3bfde49348
commit 4062aeab3d
8 changed files with 39 additions and 12 deletions

View file

@ -2,7 +2,6 @@
# Adds better error handling and safety features # Adds better error handling and safety features
# shellcheck disable=SC2016 # shellcheck disable=SC2016
# TODO: UNTESTED
set -e # Exit immediately if a command exits with a non-zero status set -e # Exit immediately if a command exits with a non-zero status
set -u # Treat unset variables as an error set -u # Treat unset variables as an error

View file

@ -1098,9 +1098,32 @@
} }
], ],
"treat_as_built_in_keyboard": true "treat_as_built_in_keyboard": true
},
{
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 12870,
"vendor_id": 6645
},
"ignore": false,
"simple_modifications": [
{
"from": { "key_code": "backslash" },
"to": [{ "key_code": "delete_or_backspace" }]
},
{
"from": { "key_code": "delete_or_backspace" },
"to": [{ "key_code": "backslash" }]
}
]
} }
], ],
"name": "Colemak", "name": "Colemak",
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
},
{
"name": "New profile",
"selected": true, "selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" } "virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
} }

View file

@ -103,7 +103,7 @@
:init :init
(setq highlight-indent-guides-method 'column) (setq highlight-indent-guides-method 'column)
(setq highlight-indent-guides-responsive 'top) (setq highlight-indent-guides-responsive 'top)
(setq highlight-indent-guides-auto-character-face-perc 5)) (setq highlight-indent-guides-auto-character-face-perc 1))

View file

@ -20,6 +20,12 @@
"fc" #'js0ny/open-config-directory "fc" #'js0ny/open-config-directory
"fh" #'counsel-recentf)) "fh" #'counsel-recentf))
;; Replace `cd' with `counsel-cd'
(defun cd ()
"Change currend default directory"
(interactive)
(counsel-cd))
(provide 'init-counsel) (provide 'init-counsel)
;;; init-counsel.el ends ;;; init-counsel.el ends

View file

@ -13,7 +13,7 @@
(use-package company (use-package company
:ensure t :ensure t
:hook (after-init . global-company-mode) ; 在启动后自动启用 global-company-mode :hook (after-init . global-company-mode) ; 在启动后自动启用 global-company-mode
:bind (:map company-active-map ; TODO: Seems does not work :bind (:map company-active-map
("C-n" . company-select-next) ("C-n" . company-select-next)
("C-p" . company-select-previous)) ("C-p" . company-select-previous))
:custom :custom

View file

@ -7,8 +7,12 @@ case "Linux"
fish_config theme choose "Catppuccin Latte" fish_config theme choose "Catppuccin Latte"
end end
case "Darwin" case "Darwin"
set SYSTEM_COLOR_SCHEME defaults read -g AppleInterfaceStyle set SYSTEM_COLOR_SCHEME (defaults read -g AppleInterfaceStyle)
echo "[TODO] Check if dark mode is enabled in macOS" if test $SYSTEM_COLOR_SCHEME = "Dark"
fish_config theme choose "Catppuccin Mocha"
else
fish_config theme choose "Catppuccin Latte"
end
case '*' case '*'
fish_config theme choose "Catppuccin Mocha" fish_config theme choose "Catppuccin Mocha"
end end

View file

@ -18,7 +18,7 @@ return {
dependencies = { "L3MON4D3/LuaSnip", "lervag/vimtex" }, dependencies = { "L3MON4D3/LuaSnip", "lervag/vimtex" },
ft = { "tex", "latex", "markdown", "org" }, ft = { "tex", "latex", "markdown", "org" },
opts = {}, opts = {},
dev = true, -- dev = true,
dir = "~/Source/Forks/luasnip-latex-snippets.nvim/" -- dir = "~/Source/Forks/luasnip-latex-snippets.nvim/"
} }
} }

View file

@ -8,11 +8,6 @@ local color = require("color")
local config = wezterm.config_builder() local config = wezterm.config_builder()
-- TODO: OS light/dark theme detection
-- local function detect_theme() end
-- config.font = 'FiraCode Nerd Font'
require("tab")(config) require("tab")(config)
require("appearance")(config) require("appearance")(config)
require("keymaps")(config) require("keymaps")(config)