diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-01-08 12:28:36 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-01-08 12:28:36 +0100 |
| commit | 94131cc61ecc4296428ce49a11b732e011029ba5 (patch) | |
| tree | 8607709ff32ae20869d38a601d9d55f51bb1bed1 | |
| parent | eb311ace1b93b45e8deba7c60c2af98cc85de9aa (diff) | |
Solidity LSP Configuration
We now have Solidity LSP configuration. Additionally, we no longer
`eglot` automatically for certain filetypes, and expect a manual
start. This was recommended by the documentation (and I understand
why; especially since I edit a lot of files outside of my `devbox`
where none of the LSPs are set up).
| -rw-r--r-- | config/emacs/init.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el index b8a6c8f..9db600d 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -87,7 +87,6 @@ If the current buffer is not open in the devbox, then this function just runs (tab-always-indent 'complete) (completion-styles '(basic initials substring)) (auto-revert-avoid-polling t) - (auto-revert-remote-files t) (major-mode-remap-alist '((c-mode . c-ts-mode) (javascript-mode . js-ts-mode) @@ -119,7 +118,9 @@ If the current buffer is not open in the devbox, then this function just runs :bind (:map eglot-mode-map ("M-q" . eglot-format)) :config - (fset #'jsonrpc--log-event #'ignore)) + (fset #'jsonrpc--log-event #'ignore) + (add-to-list 'eglot-server-programs + '(sol-mode . ("nomicfoundation-solidity-language-server" "--stdio")))) (use-package project :custom @@ -236,14 +237,12 @@ If the current buffer is not open in the devbox, then this function just runs (use-package ocaml-eglot :ensure t :after (tuareg) - :hook ((tuareg-mode . ocaml-eglot) - (ocaml-eglot . eglot-ensure))) + :hook ((ocaml-eglot . eglot-ensure))) ;;; -- Rust -- (use-package rust-ts-mode - :mode "\\.rs\\'" - :hook ((rust-ts-mode . eglot-ensure))) + :mode "\\.rs\\'") ;;; -- Solidity -- @@ -259,8 +258,7 @@ If the current buffer is not open in the devbox, then this function just runs (use-package typescript-ts-mode :mode (("\\.ts\\'" . typescript-ts-mode) - ("\\.tsx\\'" . tsx-ts-mode)) - :hook ((typescript-ts-base-mode . eglot-ensure))) + ("\\.tsx\\'" . tsx-ts-mode))) ;;; -- Miscellaneous -- |
