mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user