Adding php to lsp

This commit is contained in:
2023-12-31 12:19:53 +01:00
parent 9225877ff1
commit 3dadfbbe13
4 changed files with 71 additions and 4 deletions

View File

@@ -17,12 +17,12 @@ _RESET="\e[0m"
_title() {
printf "$_CR$_E1$_BOLD$_BLACK$1"
[[ ! -z $3 ]] && printf "$_E_RIGHT"
for (( i=0; i<(( 10 - ${#2} / 2 )); i++ ))
for (( i=0 ; i < 10 - ${#2} / 2 ; i++ ))
do
printf " "
done
printf "$2"
for (( i=0; i<(( 10 - ${#2} / 2 )); i++ ))
for (( i=0 ; i < 10 - ${#2} / 2 ; i++ ))
do
printf " "
done
@@ -32,7 +32,7 @@ _title() {
# _shortcut [string:modifier] [string:key] [string:message] [bool:right]
_shortcut() {
_MODIFIER=$(sed "s|+|\\\e[38;5;1m+\\\e[38;5;5m|g" <<< $1)
_MODIFIER="$(sed "s|+|\\\e[38;5;1m+\\\e[38;5;5m|g" <<< "$1")"
[[ ! -z $4 ]] && printf "$_E_RIGHT"
printf "$_E2"
printf "$_PURPLE$_MODIFIER$_RESET"
@@ -82,4 +82,4 @@ _title "\e[48;5;204m" "Visual mode"
_title "\e[48;5;214m" "not finished yet"
read -n 1 -s
read -r -n 1 -s