Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Emacs

For the full settings schema, see Setup Overview.

Required package

  • lsp-mode — Language Server Protocol client for Emacs

LSP configuration

Add the following to init.el:

init.el
(lsp-register-client
 (make-lsp-client
  :new-connection (lsp-stdio-connection '("solidity-language-server" "--stdio"))
  :major-modes '(solidity-mode)
  :server-id 'solidity-language-server
  :initialization-options
  '(:solidity-language-server
    (:inlayHints
     (:parameters t
      :gasEstimates t)
     :lint
     (:enabled t
      :severity []
      :only []
      :exclude [])
     :fileOperations
     (:templateOnCreate t
      :updateImportsOnRename t
      :updateImportsOnDelete t)
     :projectIndex
     (:fullProjectScan t
      :cacheMode "v2"
      :incrementalEditReindex :json-false)))))

Lint options reference

Lint options (severity, rule IDs, only, exclude) are documented in Setup Overview → Lint values.