mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(solidity): tidy module
This commit is contained in:
@ -1,27 +1,22 @@
|
|||||||
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Packages
|
;;; Packages
|
||||||
|
|
||||||
;;;###package solidity-mode
|
(after! solidity-mode
|
||||||
(setq solidity-comment-style 'slash)
|
(setq solidity-comment-style 'slash)
|
||||||
|
|
||||||
|
|
||||||
(use-package! solidity-flycheck ; included with solidity-mode
|
|
||||||
:when (featurep! :checkers syntax)
|
|
||||||
:after solidity-mode
|
|
||||||
:config
|
|
||||||
(set-docsets! 'solidity-mode "Solidity")
|
(set-docsets! 'solidity-mode "Solidity")
|
||||||
(setq flycheck-solidity-solc-addstd-contracts t)
|
(set-company-backend! 'solidity-mode 'company-solidity)
|
||||||
(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)))
|
|
||||||
|
|
||||||
|
(use-package! solidity-flycheck ; included with solidity-mode
|
||||||
|
:when (featurep! :checkers syntax)
|
||||||
|
: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)))
|
||||||
|
|
||||||
(use-package! company-solidity
|
(use-package! company-solidity
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:after solidity-mode
|
:config (delq! 'company-solidity company-backends)))
|
||||||
:config
|
|
||||||
(delq! 'company-solidity company-backends)
|
|
||||||
(set-company-backend! 'solidity-mode 'company-solidity))
|
|
||||||
|
Reference in New Issue
Block a user