mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
minor fix
This commit is contained in:
parent
3bfde49348
commit
4062aeab3d
8 changed files with 39 additions and 12 deletions
|
|
@ -2,7 +2,6 @@
|
|||
# Adds better error handling and safety features
|
||||
# shellcheck disable=SC2016
|
||||
|
||||
# TODO: UNTESTED
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
set -u # Treat unset variables as an error
|
||||
|
||||
|
|
|
|||
|
|
@ -1098,9 +1098,32 @@
|
|||
}
|
||||
],
|
||||
"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",
|
||||
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
|
||||
},
|
||||
{
|
||||
"name": "New profile",
|
||||
"selected": true,
|
||||
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
:init
|
||||
(setq highlight-indent-guides-method 'column)
|
||||
(setq highlight-indent-guides-responsive 'top)
|
||||
(setq highlight-indent-guides-auto-character-face-perc 5))
|
||||
(setq highlight-indent-guides-auto-character-face-perc 1))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@
|
|||
"fc" #'js0ny/open-config-directory
|
||||
"fh" #'counsel-recentf))
|
||||
|
||||
;; Replace `cd' with `counsel-cd'
|
||||
(defun cd ()
|
||||
"Change currend default directory"
|
||||
(interactive)
|
||||
(counsel-cd))
|
||||
|
||||
(provide 'init-counsel)
|
||||
|
||||
;;; init-counsel.el ends
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
(use-package company
|
||||
:ensure t
|
||||
: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-p" . company-select-previous))
|
||||
:custom
|
||||
|
|
|
|||
|
|
@ -7,8 +7,12 @@ case "Linux"
|
|||
fish_config theme choose "Catppuccin Latte"
|
||||
end
|
||||
case "Darwin"
|
||||
set SYSTEM_COLOR_SCHEME defaults read -g AppleInterfaceStyle
|
||||
echo "[TODO] Check if dark mode is enabled in macOS"
|
||||
set SYSTEM_COLOR_SCHEME (defaults read -g AppleInterfaceStyle)
|
||||
if test $SYSTEM_COLOR_SCHEME = "Dark"
|
||||
fish_config theme choose "Catppuccin Mocha"
|
||||
else
|
||||
fish_config theme choose "Catppuccin Latte"
|
||||
end
|
||||
case '*'
|
||||
fish_config theme choose "Catppuccin Mocha"
|
||||
end
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ return {
|
|||
dependencies = { "L3MON4D3/LuaSnip", "lervag/vimtex" },
|
||||
ft = { "tex", "latex", "markdown", "org" },
|
||||
opts = {},
|
||||
dev = true,
|
||||
dir = "~/Source/Forks/luasnip-latex-snippets.nvim/"
|
||||
-- dev = true,
|
||||
-- dir = "~/Source/Forks/luasnip-latex-snippets.nvim/"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,11 +8,6 @@ local color = require("color")
|
|||
|
||||
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("appearance")(config)
|
||||
require("keymaps")(config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue