;;; lsp-vetur.el --- vls configuration -*- lexical-binding: t; -*- ;; Copyright (C) 2019 Ivan Yonchovski ;; Author: Ivan Yonchovski ;; Keywords: ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;;; Commentary: ;; VLS configuration ;;; Code: (require 'lsp-mode) (require 'lsp-html) (defgroup lsp-vetur nil "LSP support for Vue, using the Vue Language Server." :group 'lsp-mode :link '(url-link "https://github.com/vuejs/vetur/tree/master/server") :package-version '(lsp-mode . "6.1")) (defcustom lsp-vetur-use-workspace-dependencies nil "Use dependencies from workspace. Currently only for TypeScript." :type 'boolean :group 'lsp-vetur :package-version '(lsp-mode . "6.1")) (defcustom lsp-vetur-completion-auto-import t "Include completion for module export and auto import them" :type 'boolean :group 'lsp-vetur :package-version '(lsp-mode . "6.1")) (defcustom lsp-vetur-completion-use-scaffold-snippets t "Enable/disable Vetur's built-in scaffolding snippets" :type 'boolean :group 'lsp-vetur :package-version '(lsp-mode . "6.1")) (defcustom lsp-vetur-completion-tag-casing "kebab" "Casing conversion for tag completion" :type '(choice (const "initial") (const "kebab")) :group 'lsp-vetur :package-version '(lsp-mode . "6.1")) (defcustom lsp-vetur-grammar-custom-blocks '((docs . "md") (i18n . "json")) "Mapping from custom block tag name to language name. Used for generating grammar to support syntax highlighting for custom blocks." :type 'alist :group 'lsp-vetur :package-version '(lsp-mode . "6.1")) (defcustom lsp-vetur-validation-template t "Validate vue-html in