mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
BREAKING CHANGE: parentheses will no longer be colored by depth. No substitute is provided because it's trivial for users to install themselves. Ref: https://github.com/orgs/doomemacs/projects/5/views/1?pane=issue&itemId=117610828
30 lines
726 B
EmacsLisp
30 lines
726 B
EmacsLisp
;;; lang/graphql/config.el -*- lexical-binding: t; -*-
|
|
|
|
(after! graphql-mode
|
|
(defface nerd-icons-rhodamine
|
|
'((t (:foreground "#E10098")))
|
|
"Face for GraphQL icon."
|
|
:group 'nerd-icons-faces)
|
|
(if (modulep! +lsp)
|
|
(add-hook 'graphql-mode-local-vars-hook #'lsp! 'append)
|
|
(set-company-backend! 'graphql-mode 'company-graphql))
|
|
|
|
(set-docsets! 'graphql-mode :add "GraphQL Specification")
|
|
|
|
(set-electric! 'graphql-mode
|
|
:chars '(?\} ?\))
|
|
:words '("or" "and"))
|
|
|
|
(set-ligatures! 'graphql-mode
|
|
:null "null"
|
|
:true "true" :false "false"
|
|
:int "Int" :str "String"
|
|
:float "Float"
|
|
:bool "Bool"
|
|
|
|
:not "not"
|
|
:and "and" :or "or"))
|
|
|
|
(use-package! graphql-doc
|
|
:after graphql-mode)
|