doom-emacs/modules/lang/graphql/config.el
Ellis Kenyő cb016f2dba
refactor!: replace all-the-icons with nerd-icons
BREAKING CHANGE: This commit replaces all-the-icons with nerd-fonts. Any
all-the-icons-* function calls or variable references in your private
config will break and should be replaced with their nerd-icons-*
equivalent. That said, Doom will continue to install all-the-icons for
a while, so feel free to load it if you don't want to fully commit to
the change yet.

This change is happening because nerd-icon has wider support for GUI and
TUI Emacs; has a larger, more consistent selection of symbols; plus unicode
coverage.

Fix: #7368
Close: #6675
Close: #7364
2024-05-21 17:15:56 +02:00

30 lines
784 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))
(add-hook 'graphql-mode-hook #'rainbow-delimiters-mode)
(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)