diff options
| author | sgherdao <104869962+sgherdao@users.noreply.github.com> | 2024-02-09 01:56:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 17:56:49 -0800 |
| commit | c07e90793c839d1973a0820d24e03a0a6b30b77e (patch) | |
| tree | 419f70937b26811fc417aa15c148928d0369733f /apheleia-formatters.el | |
| parent | 96a9805ecb75aac2adde7568d26b3e3b3ffc19af (diff) | |
add support for pyang (#282)
Hi,
pyang (https://github.com/mbj4668/pyang) is a YANG validator,
transformator and code generator, written in python. YANG (RFC 7950) is
a data modeling language for NETCONF (RFC 6241), developed by the IETF
NETMOD WG. This formatter provides support for Emacs yang-mode.
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'apheleia-formatters.el')
| -rw-r--r-- | apheleia-formatters.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el index 0e56ae8..4de755c 100644 --- a/apheleia-formatters.el +++ b/apheleia-formatters.el @@ -150,6 +150,7 @@ "--parser=yaml" (apheleia-formatters-js-indent "--use-tabs" "--tab-width"))) (purs-tidy . ("apheleia-npx" "purs-tidy" "format")) + (pyang . ("pyang" "--ignore-errors" "-f" "yang")) (robotidy . ("robotidy" "--no-color" "-" (apheleia-formatters-indent nil "--indent") (apheleia-formatters-fill-column "--line-length"))) @@ -370,7 +371,8 @@ rather than using this system." (typescript-ts-mode . prettier-typescript) (web-mode . prettier) (yaml-mode . prettier-yaml) - (yaml-ts-mode . prettier-yaml)) + (yaml-ts-mode . prettier-yaml) + (yang-mode . pyang)) "Alist mapping major mode names to formatters to use in those modes. This determines what formatter to use in buffers without a setting for `apheleia-formatter'. The keys are major mode |
