|
26 | 26 | ;;; Commentary:
|
27 | 27 |
|
28 | 28 | ;; This package provides an interactive ivy interface to the workspace symbol
|
29 |
| -;; functionality offered by lsp-mode. For an alternative implementation based on |
| 29 | +;; functionality offered by lsp-mode. For an alternative implementation based on |
30 | 30 | ;; helm, see https://github.com/emacs-lsp/helm-lsp
|
31 | 31 |
|
32 | 32 | ;;; Code:
|
|
60 | 60 | :type '(repeat integer))
|
61 | 61 |
|
62 | 62 | (defcustom lsp-ivy-symbol-kind-to-face
|
63 |
| - [(" " . nil) ;; Unknown - 0 |
64 |
| - ("File" . font-lock-builtin-face) ;; File - 1 |
65 |
| - ("Modu" . font-lock-keyword-face) ;; Module - 2 |
66 |
| - ("Nmsp" . font-lock-keyword-face) ;; Namespace - 3 |
67 |
| - ("Pack" . font-lock-keyword-face) ;; Package - 4 |
68 |
| - ("Clss" . font-lock-type-face) ;; Class - 5 |
69 |
| - ("Meth" . font-lock-function-name-face) ;; Method - 6 |
70 |
| - ("Prop" . font-lock-constant-face) ;; Property - 7 |
71 |
| - ("Fld " . font-lock-constant-face) ;; Field - 8 |
72 |
| - ("Cons" . font-lock-function-name-face) ;; Constructor - 9 |
73 |
| - ("Enum" . font-lock-type-face) ;; Enum - 10 |
74 |
| - ("Intf" . font-lock-type-face) ;; Interface - 11 |
75 |
| - ("Func" . font-lock-function-name-face) ;; Function - 12 |
76 |
| - ("Var " . font-lock-variable-name-face) ;; Variable - 13 |
77 |
| - ("Cnst" . font-lock-constant-face) ;; Constant - 14 |
78 |
| - ("Str " . font-lock-string-face) ;; String - 15 |
79 |
| - ("Num " . font-lock-builtin-face) ;; Number - 16 |
80 |
| - ("Bool " . font-lock-builtin-face) ;; Boolean - 17 |
81 |
| - ("Arr " . font-lock-builtin-face) ;; Array - 18 |
82 |
| - ("Obj " . font-lock-builtin-face) ;; Object - 19 |
83 |
| - ("Key " . font-lock-constant-face) ;; Key - 20 |
84 |
| - ("Null" . font-lock-builtin-face) ;; Null - 21 |
85 |
| - ("EmMm" . font-lock-constant-face) ;; EnumMember - 22 |
86 |
| - ("Srct" . font-lock-type-face) ;; Struct - 23 |
87 |
| - ("Evnt" . font-lock-builtin-face) ;; Event - 24 |
88 |
| - ("Op " . font-lock-function-name-face) ;; Operator - 25 |
89 |
| - ("TPar" . font-lock-type-face)] ;; TypeParameter - 26 |
| 63 | + [(" " . nil) ; Unknown - 0 |
| 64 | + ("File" . font-lock-builtin-face) ; File - 1 |
| 65 | + ("Modu" . font-lock-keyword-face) ; Module - 2 |
| 66 | + ("Nmsp" . font-lock-keyword-face) ; Namespace - 3 |
| 67 | + ("Pack" . font-lock-keyword-face) ; Package - 4 |
| 68 | + ("Clss" . font-lock-type-face) ; Class - 5 |
| 69 | + ("Meth" . font-lock-function-name-face) ; Method - 6 |
| 70 | + ("Prop" . font-lock-constant-face) ; Property - 7 |
| 71 | + ("Fld " . font-lock-constant-face) ; Field - 8 |
| 72 | + ("Cons" . font-lock-function-name-face) ; Constructor - 9 |
| 73 | + ("Enum" . font-lock-type-face) ; Enum - 10 |
| 74 | + ("Intf" . font-lock-type-face) ; Interface - 11 |
| 75 | + ("Func" . font-lock-function-name-face) ; Function - 12 |
| 76 | + ("Var " . font-lock-variable-name-face) ; Variable - 13 |
| 77 | + ("Cnst" . font-lock-constant-face) ; Constant - 14 |
| 78 | + ("Str " . font-lock-string-face) ; String - 15 |
| 79 | + ("Num " . font-lock-builtin-face) ; Number - 16 |
| 80 | + ("Bool " . font-lock-builtin-face) ; Boolean - 17 |
| 81 | + ("Arr " . font-lock-builtin-face) ; Array - 18 |
| 82 | + ("Obj " . font-lock-builtin-face) ; Object - 19 |
| 83 | + ("Key " . font-lock-constant-face) ; Key - 20 |
| 84 | + ("Null" . font-lock-builtin-face) ; Null - 21 |
| 85 | + ("EmMm" . font-lock-constant-face) ; EnumMember - 22 |
| 86 | + ("Srct" . font-lock-type-face) ; Struct - 23 |
| 87 | + ("Evnt" . font-lock-builtin-face) ; Event - 24 |
| 88 | + ("Op " . font-lock-function-name-face) ; Operator - 25 |
| 89 | + ("TPar" . font-lock-type-face)] ; TypeParameter - 26 |
90 | 90 | "A vector of 26 cons cells, where the ith cons cell contains the string representation and face to use for the i+1th SymbolKind (defined in the LSP)."
|
91 | 91 | :group 'lsp-ivy
|
92 | 92 | :type '(vector
|
|
0 commit comments