Add :lang yaml module

Removes yaml-mode from :lang data and adds LSP support (#2502).

Closes #2502

Co-authored-by: Seong Yong-ju <sei40kr@gmail.com>
This commit is contained in:
Henrik Lissner 2020-04-23 17:43:42 -04:00
parent b151abfd34
commit 4a8c4815f1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 53 additions and 4 deletions

View file

@ -143,6 +143,7 @@ Modules that bring support for a language or group of languages to Emacs.
+ swift =+lsp= - TODO + swift =+lsp= - TODO
+ terra - TODO + terra - TODO
+ web =+lsp= - HTML and CSS (SCSS/SASS/LESS/Stylus) support. + web =+lsp= - HTML and CSS (SCSS/SASS/LESS/Stylus) support.
+ [[file:../modules/lang/yaml/README.org][yaml]] =+lsp= - TODO
* :term * :term
Modules that offer terminal emulation. Modules that offer terminal emulation.

View file

@ -158,6 +158,7 @@
;;swift ; who asked for emoji variables? ;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance. ;;terra ; Earth and Moon in alignment for performance.
;;web ; the tubes ;;web ; the tubes
;;yaml ; JSON, but readable
:email :email
;;(mu4e +gmail) ;;(mu4e +gmail)

View file

@ -37,9 +37,6 @@
(after! jsonnet-mode (after! jsonnet-mode
(set-electric! 'jsonnet-mode :chars '(?\n ?: ?{ ?}))) (set-electric! 'jsonnet-mode :chars '(?\n ?: ?{ ?})))
(after! yaml-mode
(setq-hook! 'yaml-mode-hook tab-width yaml-indent-offset))
;; ;;
;;; Frameworks ;;; Frameworks

View file

@ -3,7 +3,6 @@
(package! graphql-mode :pin "7c37aee28b") (package! graphql-mode :pin "7c37aee28b")
(package! jsonnet-mode :pin "d8b486c837") (package! jsonnet-mode :pin "d8b486c837")
(package! yaml-mode :pin "cecf4b106b")
(package! csv-mode :pin "635337407c") (package! csv-mode :pin "635337407c")
(package! dhall-mode :pin "ef4d33debe") (package! dhall-mode :pin "ef4d33debe")
(package! protobuf-mode (package! protobuf-mode

View file

@ -0,0 +1,38 @@
#+TITLE: lang/yaml
#+DATE: April 23, 2020
#+SINCE: v3.0.0
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]
* Description
This module provides support for the [[https://yaml.org/][YAML file format]].
** Maintainers
This module has no dedicated maintainers.
** Module Flags
+ =+lsp= Enables integration with LSP servers. Requires the =:tools lsp= module to be enabled.
** Plugins
+ [[https://github.com/yoshiki/yaml-mode][yaml-mode]]
* Prerequisites
This module has no prereqisites.
* TODO Features
# An in-depth list of features, how to use them, and their dependencies.
* TODO Configuration
# How to configure this module, including common problems and how to address them.
* TODO Troubleshooting
# Common issues and their solution, or places to look for help.

View file

@ -0,0 +1,9 @@
;;; lang/yaml/config.el -*- lexical-binding: t; -*-
(use-package! yaml-mode
:hook "Procfile\\'"
:init
(when (featurep! +lsp)
(add-hook 'yaml-mode-local-vars-hook #'lsp!))
:config
(setq-hook! 'yaml-mode-hook tab-width yaml-indent-offset))

View file

@ -0,0 +1,4 @@
;; -*- no-byte-compile: t; -*-
;;; lang/yaml/packages.el
(package! yaml-mode :pin "cecf4b106b")