Skip to content

Commit ab485b8

Browse files
committed
Replace derived-mode-p with identity major-modes
1 parent 72cabd1 commit ab485b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lsp-ltex.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ When STORE is non-nil, this will also store the new plist in the directory
584584
(and (file-exists-p entry)
585585
(not (file-directory-p entry))
586586
(file-executable-p entry)))))
587-
:activation-fn
588-
(lambda (&rest _) (apply #'derived-mode-p lsp-ltex-active-modes))
587+
:major-modes lsp-ltex-active-modes
589588
:action-handlers
590589
(lsp-ht
591590
("_ltex.addToDictionary" #'lsp-ltex--code-action-add-to-dictionary)

0 commit comments

Comments
 (0)