fix(elixir): start lsp when ts and lsp are enabled

LSP will now correctly auto start when you have both +lsp and
+tree-sitter flags on elixir module.
This commit is contained in:
Kepi
2025-02-24 13:46:34 +01:00
committed by Henrik Lissner
parent b55d988491
commit 4e2449031e

View File

@ -37,6 +37,9 @@
(sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p)) (sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p))
(sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p))) (sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p)))
(when (modulep! +lsp +tree-sitter)
(add-hook 'elixir-ts-mode-local-vars-hook #'lsp! 'append)
(when (modulep! +lsp) (when (modulep! +lsp)
(add-hook 'elixir-mode-local-vars-hook #'lsp! 'append) (add-hook 'elixir-mode-local-vars-hook #'lsp! 'append)
(after! lsp-mode (after! lsp-mode