Skip to content

Commit 77b14eb

Browse files
committed
Add active modes
1 parent 7e7b4ee commit 77b14eb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lsp-shader.el

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ This is only for development use."
4545
:type 'string
4646
:group 'lsp-shader)
4747

48+
(defcustom lsp-shader-active-modes
49+
'(shader-mode hlsl-mode glsl-mode)
50+
"List of major mode that work with shader-ls."
51+
:type 'list
52+
:group 'lsp-shader)
53+
4854
(defcustom lsp-shader-completion-word t
4955
"Non-nil to enable word completion."
5056
:type 'string
@@ -80,8 +86,8 @@ Will update if UPDATE? is t"
8086
#'lsp-shader--cls-test-shader-ls-present)
8187
:priority -1
8288
:server-id 'shader-ls
83-
:activation-fn (lsp-activate-on "shaderlab")
84-
:major-modes '(shader-mode)
89+
:major-modes lsp-shader-active-modes
90+
:add-on? t
8591
:download-server-fn #'lsp-shader--cls-download-server))
8692

8793
(provide 'lsp-shader)

0 commit comments

Comments
 (0)