diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-12-03 19:26:21 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-12-03 20:02:13 +0000 |
| commit | 5a9757b04830232a504437adcf35a138dc723bb9 (patch) | |
| tree | 9663b73b34a84a87056ae2ffb1823739c15690ed | |
| parent | 3966f5a6b6a9b72b06a1e22a5c0b277d0200383d (diff) | |
| download | gentoo-utils-5a9757b04830232a504437adcf35a138dc723bb9.tar.gz | |
commit dir-locals
| -rw-r--r-- | .dir-locals.el | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..cccbb8c --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,26 @@ +((rust-mode . ((fmt-executable . "rustfmt") + (fmt-args . ("--edition=2024")) + (rust-cargo-default-arguments . "-r") + (eglot-workspace-configuration . (:rust-analyzer + (:check + (:overrideCommand ["ninja" "clippy-json" "-C" "build"])))) + (eval . (add-to-list 'eglot-server-programs + '((rust-ts-mode rust-mode) . + ("rust-analyzer" :initializationOptions + (:check + (:overrideCommand ["ninja" "clippy-json" "-C" "build"])))))) + (eval . (eglot-ensure)) + (eval . (company-mode 1)) + (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)) + (eval . (add-hook 'eglot-managed-mode-hook (lambda () + (eglot-inlay-hints-mode -1)) + nil t)))) + (meson-mode . ((fmt-executable . "meson") + (fmt-args . ("format" "-")) + (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)))) + (python-ts-mode . ((eval . (flycheck-mode 1)) + (eval . (flycheck-select-checker 'python-mypy)) + (eval . (flycheck-add-next-checker 'python-mypy (cons t 'python-flake8))) + (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)) + (eval . (setq-local fmt-executable "black" + fmt-args '("-")))))) |
