mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
replace zsh-syntax-highlighting with fast-syntax-highlighting
This commit is contained in:
parent
33f03d7d91
commit
dca985c3d9
9 changed files with 84 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
/custom
|
||||
/cache
|
||||
|
|
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -1,6 +1,6 @@
|
|||
[submodule "oh-my-zsh"]
|
||||
path = oh-my-zsh
|
||||
url = https://github.com/robbyrussell/oh-my-zsh.git
|
||||
[submodule "zsh-syntax-highlighting"]
|
||||
path = zsh-syntax-highlighting
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
[submodule "fast-syntax-highlighting"]
|
||||
path = fast-syntax-highlighting
|
||||
url = https://github.com/zdharma/fast-syntax-highlighting.git
|
||||
|
|
1
fast-syntax-highlighting
Submodule
1
fast-syntax-highlighting
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 7b8ab36f88ee4625e1eb858e8538d78a0c1d1519
|
75
lib/my-syntax-theme.ini
Normal file
75
lib/my-syntax-theme.ini
Normal file
|
@ -0,0 +1,75 @@
|
|||
[base]
|
||||
default = none
|
||||
unknown-token = red,bold
|
||||
commandseparator = none
|
||||
redirection = none
|
||||
here-string-tri = yellow
|
||||
here-string-word = bg:blue
|
||||
exec-descriptor = yellow,bold
|
||||
comment = white
|
||||
correct-subtle = bg:blue
|
||||
incorrect-subtle = red
|
||||
subtle-bg = bg:blue
|
||||
secondary =
|
||||
|
||||
[command-point]
|
||||
reserved-word = yellow
|
||||
subcommand = yellow
|
||||
alias = green
|
||||
suffix-alias = green
|
||||
global-alias = bg:blue
|
||||
builtin = green
|
||||
function = green
|
||||
command = green
|
||||
precommand = green
|
||||
hashed-command = green
|
||||
|
||||
[paths]
|
||||
path = none
|
||||
pathseparator =
|
||||
path-to-dir = none,underline
|
||||
globbing = blue,bold
|
||||
|
||||
[brackets]
|
||||
paired-bracket = bg:blue
|
||||
bracket-level-1 = green,bold
|
||||
bracket-level-2 = yellow,bold
|
||||
bracket-level-3 = cyan,bold
|
||||
|
||||
[arguments]
|
||||
single-hyphen-option = cyan
|
||||
double-hyphen-option = cyan
|
||||
back-quoted-argument = none
|
||||
single-quoted-argument = yellow
|
||||
double-quoted-argument = yellow
|
||||
dollar-quoted-argument = yellow
|
||||
|
||||
[in-string]
|
||||
; backslash in $'...'
|
||||
back-dollar-quoted-argument = cyan
|
||||
; backslash or $... in "..."
|
||||
back-or-dollar-double-quoted-argument = cyan
|
||||
|
||||
[other]
|
||||
variable = 113
|
||||
assign = none
|
||||
assign-array-bracket = green
|
||||
history-expansion = blue,bold
|
||||
|
||||
[math]
|
||||
mathvar = blue,bold
|
||||
mathnum = blue
|
||||
matherr = red
|
||||
|
||||
[for-loop]
|
||||
forvar = none
|
||||
fornum = blue
|
||||
; operator
|
||||
foroper = yellow
|
||||
; separator
|
||||
forsep = yellow,bold
|
||||
|
||||
[case]
|
||||
case-input = green
|
||||
case-parentheses = yellow
|
||||
case-condition = bg:blue
|
|
@ -27,7 +27,6 @@ configure_oh_my_zsh() {
|
|||
git
|
||||
common-aliases
|
||||
extract
|
||||
# zsh-syntax-highlighting
|
||||
)
|
||||
|
||||
if is_linux; then
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
configure_syntax_highlighting() {
|
||||
source "$DOTFILES_PATH/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh"
|
||||
# set directory for compiled theme files
|
||||
FAST_WORK_DIR="$DOTFILES_PATH/cache"
|
||||
source "$DOTFILES_PATH/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"
|
||||
}
|
||||
|
||||
configure_dircolors() {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit caa936593a6945cfcf21ca3f65acdd249586db13
|
||||
Subproject commit 86542dcd8627d0e9a4b1acd8c01a9cdae4697698
|
|
@ -1 +0,0 @@
|
|||
Subproject commit db6cac391bee957c20ff3175b2f03c4817253e60
|
2
zshrc
2
zshrc
|
@ -6,8 +6,6 @@ if [[ -n "$DOTFILES_PATH" ]]; then
|
|||
source_if_exists "$DOTFILES_PATH/custom/$script.zsh"
|
||||
done
|
||||
|
||||
source "$DOTFILES_PATH/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh"
|
||||
|
||||
run_before rbenv 'eval "$(rbenv init -)"'
|
||||
run_before sdk 'source_if_exists "$SDKMAN_DIR/bin/sdkman-init.sh"'
|
||||
run_before yarn 'source_if_exists "$(yarn global dir)/node_modules/tabtab/.completions/yarn.zsh"'
|
||||
|
|
Loading…
Reference in a new issue