Skip to content

Commit 761b5aa

Browse files
authored
Allow modeline code action fallback icon (#2292)
1 parent c81c2d4 commit 761b5aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lsp-modeline.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
:group 'lsp-mode
3838
:package-version '(lsp-mode . "7.1"))
3939

40+
(defcustom lsp-modeline-code-action-fallback-icon "💡"
41+
"Define what should display on the modeline when code actions are available."
42+
:type 'string
43+
:group 'lsp-mode
44+
:package-version '(lsp-mode . "7.1"))
45+
4046
(defface lsp-modeline-code-actions-face
4147
'((t :inherit homoglyph))
4248
"Face used to code action text on modeline."
@@ -80,7 +86,7 @@
8086
(all-the-icons-octicon "light-bulb"
8187
:face face
8288
:v-adjust -0.0575)
83-
(propertize "💡" 'face face)))
89+
(propertize lsp-modeline-code-action-fallback-icon 'face face)))
8490

8591
(defun lsp-modeline--code-action-name (actions preferred-code-action-title)
8692
"Return the code action name from ACTIONS and PREFERRED-CODE-ACTION-TITLE."

0 commit comments

Comments
 (0)