Improve solidity layer
Enable +javascript-npm-mode in solidity-mode when package.json exists. Set docsets for solidity-mode.
This commit is contained in:
parent
097972bd9d
commit
f31840ac9e
2 changed files with 8 additions and 1 deletions
|
@ -284,7 +284,13 @@ to tide."
|
||||||
;;; Projects
|
;;; Projects
|
||||||
|
|
||||||
(def-project-mode! +javascript-npm-mode
|
(def-project-mode! +javascript-npm-mode
|
||||||
:modes '(html-mode css-mode web-mode markdown-mode js-mode typescript-mode)
|
:modes '(html-mode
|
||||||
|
css-mode
|
||||||
|
web-mode
|
||||||
|
markdown-mode
|
||||||
|
js-mode
|
||||||
|
typescript-mode
|
||||||
|
solidity-mode)
|
||||||
:when (locate-dominating-file default-directory "package.json")
|
:when (locate-dominating-file default-directory "package.json")
|
||||||
:add-hooks '(+javascript-add-node-modules-path-h npm-mode))
|
:add-hooks '(+javascript-add-node-modules-path-h npm-mode))
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
:when (featurep! :checkers syntax)
|
:when (featurep! :checkers syntax)
|
||||||
:after solidity-mode
|
:after solidity-mode
|
||||||
:config
|
:config
|
||||||
|
(set-docsets! 'solidity-mode "Solidity")
|
||||||
(setq flycheck-solidity-solc-addstd-contracts t)
|
(setq flycheck-solidity-solc-addstd-contracts t)
|
||||||
(when (funcall flycheck-executable-find solidity-solc-path)
|
(when (funcall flycheck-executable-find solidity-solc-path)
|
||||||
(add-to-list 'flycheck-checkers 'solidity-checker nil #'eq))
|
(add-to-list 'flycheck-checkers 'solidity-checker nil #'eq))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue