1
0
Fork 0

feat(emacs): add rust and ocaml configs

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-12-29 04:43:28 -05:00
parent 8ac7f4a5ae
commit 1d323ff80c
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
3 changed files with 22 additions and 17 deletions

View file

@ -62,17 +62,6 @@
(global-set-key (kbd "C-c g b") #'magit-blame)
(setq auth-sources '("~/.authinfo"))
;; Web configuration
(add-to-list 'auto-mode-alist '("\\.jsx?$" . web-mode))
(setq web-mode-content-types-alist '(("jsx" . "\\.js[x]?\\")))
(setq web-mode-markup-indent-offset 2)
;; Rust LSP configuration
(setq lsp-rust-analyzer-cargo-watch-enable t)
(setq lsp-rust-analyzer-cargo-watch-command "clippy")
(setq lsp-rust-analyzer-server-display-inlay-hints t)
(setq lsp-rust-analyzer-inlay-hints-mode t)
;; Neotree
(defun neotree-toggle-current-directory ()
"Toggle neotree at the current directory."