mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-24 16:30:58 -05:00
@@ -32,14 +32,6 @@
|
|||||||
(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)
|
(when (modulep! +lsp)
|
||||||
;; HACK: lsp-elixir is hardcoded to use the server `lsp-install-server'
|
|
||||||
;; installs, ignoring any system-provided executables. This fixes that, so
|
|
||||||
;; long as the user hasn't changed `lsp-elixir-server-command' themselves,
|
|
||||||
(when (and (member lsp-elixir-server-command
|
|
||||||
'(("language_server.bat")
|
|
||||||
("language_server.sh")))
|
|
||||||
(executable-find "elixir-ls"))
|
|
||||||
(setq lsp-elixir-server-command "elixir-ls"))
|
|
||||||
(add-hook (intern (format "%s-local-vars-hook" mode)) #'lsp! 'append))
|
(add-hook (intern (format "%s-local-vars-hook" mode)) #'lsp! 'append))
|
||||||
|
|
||||||
(use-package! flycheck-credo
|
(use-package! flycheck-credo
|
||||||
@@ -70,7 +62,17 @@
|
|||||||
|
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(after! lsp-mode
|
(after! lsp-mode
|
||||||
(add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]_build\\'")))
|
(add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]_build\\'"))
|
||||||
|
(after! lsp-elixir
|
||||||
|
;; HACK: lsp-elixir is hardcoded to use the server `lsp-install-server'
|
||||||
|
;; installs, ignoring any system-provided executables. This fixes that,
|
||||||
|
;; so long as the user hasn't changed `lsp-elixir-server-command'
|
||||||
|
;; themselves,
|
||||||
|
(when (and (member lsp-elixir-server-command
|
||||||
|
'(("language_server.bat")
|
||||||
|
("language_server.sh")))
|
||||||
|
(executable-find "elixir-ls"))
|
||||||
|
(setq lsp-elixir-server-command "elixir-ls"))))
|
||||||
:config
|
:config
|
||||||
(+elixir-common-config 'elixir-mode))
|
(+elixir-common-config 'elixir-mode))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user