feat(emacs): add rust and ocaml configs
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
8ac7f4a5ae
commit
1d323ff80c
3 changed files with 22 additions and 17 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue