From 4e2449031e32a7125992257c5c0f8db4c35add93 Mon Sep 17 00:00:00 2001 From: Kepi Date: Mon, 24 Feb 2025 13:46:34 +0100 Subject: [PATCH] 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. --- modules/lang/elixir/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/lang/elixir/config.el b/modules/lang/elixir/config.el index 47ffe81dc..ac7f2ac13 100644 --- a/modules/lang/elixir/config.el +++ b/modules/lang/elixir/config.el @@ -37,6 +37,9 @@ (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))) + (when (modulep! +lsp +tree-sitter) + (add-hook 'elixir-ts-mode-local-vars-hook #'lsp! 'append) + (when (modulep! +lsp) (add-hook 'elixir-mode-local-vars-hook #'lsp! 'append) (after! lsp-mode