2018-05-17 21:00:30 -05:00
|
|
|
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;
|
2021-10-18 11:42:34 +02:00
|
|
|
;;; Packages
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-18 11:42:34 +02:00
|
|
|
(after! solidity-mode
|
|
|
|
(setq solidity-comment-style 'slash)
|
2020-01-29 23:59:45 +09:00
|
|
|
(set-docsets! 'solidity-mode "Solidity")
|
2021-10-18 11:42:34 +02:00
|
|
|
(set-company-backend! 'solidity-mode 'company-solidity)
|
2022-11-19 15:15:37 +00:00
|
|
|
(set-formatter! 'prettier-solidity '(npx "prettier" "--stdin-filepath" filepath "--parser=solidity") :modes '(solidity-mode))
|
2018-06-07 18:03:58 +02:00
|
|
|
|
2021-10-18 11:42:34 +02:00
|
|
|
(use-package! solidity-flycheck ; included with solidity-mode
|
2022-08-17 01:16:08 +01:00
|
|
|
:when (and (modulep! :checkers syntax)
|
|
|
|
(not (modulep! :checkers syntax +flymake)))
|
2021-10-18 11:42:34 +02:00
|
|
|
:config
|
|
|
|
(setq flycheck-solidity-solc-addstd-contracts t)
|
|
|
|
(when (funcall flycheck-executable-find solidity-solc-path)
|
|
|
|
(add-to-list 'flycheck-checkers 'solidity-checker nil #'eq))
|
|
|
|
(when (funcall flycheck-executable-find solidity-solium-path)
|
|
|
|
(add-to-list 'flycheck-checkers 'solium-checker nil #'eq)))
|
2018-05-17 21:00:30 -05:00
|
|
|
|
2021-10-18 11:42:34 +02:00
|
|
|
(use-package! company-solidity
|
2022-08-12 20:29:19 +02:00
|
|
|
:when (modulep! :completion company)
|
2021-10-18 11:42:34 +02:00
|
|
|
:config (delq! 'company-solidity company-backends)))
|