Add pretty symbols to php-mode (#3513)
* Add pretty symbols to php-mode I'm not pretty sure if Types are redundant or not since Php is not so much around types... But I added them just in case. * Remove dot from Php pretty symbols * Sort php/config.el
This commit is contained in:
parent
60f8cc7f8a
commit
ff0b78e0b6
1 changed files with 17 additions and 0 deletions
|
@ -21,6 +21,23 @@
|
||||||
(set-repl-handler! 'php-mode #'php-boris)
|
(set-repl-handler! 'php-mode #'php-boris)
|
||||||
(set-lookup-handlers! 'php-mode :documentation #'php-search-documentation)
|
(set-lookup-handlers! 'php-mode :documentation #'php-search-documentation)
|
||||||
(set-formatter! 'php-mode #'php-cs-fixer-fix)
|
(set-formatter! 'php-mode #'php-cs-fixer-fix)
|
||||||
|
(set-pretty-symbols! 'php-mode
|
||||||
|
;; Functional
|
||||||
|
:lambda "function()"
|
||||||
|
:def "function"
|
||||||
|
;; Types
|
||||||
|
:null "null"
|
||||||
|
:true "true" :false "false"
|
||||||
|
:int "int" :float "float"
|
||||||
|
:str "string"
|
||||||
|
:bool "list"
|
||||||
|
;; Flow
|
||||||
|
:not "!"
|
||||||
|
:and "&&" :and "and"
|
||||||
|
:or "||" :or "or"
|
||||||
|
:for "for"
|
||||||
|
:return "return"
|
||||||
|
:yield "use")
|
||||||
|
|
||||||
(if (featurep! +lsp)
|
(if (featurep! +lsp)
|
||||||
(add-hook 'php-mode-local-vars-hook #'lsp!)
|
(add-hook 'php-mode-local-vars-hook #'lsp!)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue