1
0
Fork 0

feat(emacs): add ocaml and rust configs

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-12-29 04:57:30 -05:00
parent 7e8f372744
commit 858ecd3818
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,9 @@
;;; ocamlconfig.el --- Configuration for OCaml and Tuareg
;;; Commentary:
;;; Code:
(add-hook 'tuareg-mode-hook #'flycheck-ocaml-setup)
(add-hook 'tuareg-mode-hook #'(lambda () (merlin-mode -1)))
(setq utop-command "opam exec -- dune utop . -- -emacs")
;;; ocamlconfig.el ends here

View file

@ -0,0 +1,16 @@
;;; rustconfig.el --- Configuration for Rust.
;;; Commentary:
;; Configuration for Rust;
;;; Code:
(setq lsp-rust-analyzer-cargo-watch-enable t)
(setq lsp-rust-analyzer-cargo-watch-command "clippy")
;; Inlay hints
(setq lsp-rust-analyzer-server-display-inlay-hints t)
(setq lsp-rust-analyzer-inlay-hints-mode t)
(setq lsp-rust-analyzer-display-chaining-hints t)
(setq lsp-rust-analyzer-parameter-hints t)
(setq lsp-rust-analyzer-display-closure-return-type-hints t)
;;; rustconfig.el ends here