lsp-vala.el (1609B)
1 ;;; lsp-vala.el --- Vala Client settings -*- lexical-binding: t; -*- 2 3 ;; Copyright (C) 2020 Daniel Svensson 4 5 ;; Author: Daniel Svensson 6 ;; Keywords: vala lsp 7 8 ;; This program is free software; you can redistribute it and/or modify 9 ;; it under the terms of the GNU General Public License as published by 10 ;; the Free Software Foundation, either version 3 of the License, or 11 ;; (at your option) any later version. 12 13 ;; This program is distributed in the hope that it will be useful, 14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ;; GNU General Public License for more details. 17 18 ;; You should have received a copy of the GNU General Public License 19 ;; along with this program. If not, see <https://www.gnu.org/licenses/>. 20 21 ;;; Commentary: 22 23 ;; LSP client for Vala 24 25 ;;; Code: 26 27 (require 'lsp-mode) 28 29 (defgroup lsp-vala nil 30 "LSP support for Vala, using vala-language-server" 31 :group 'lsp-mode 32 :link '(url-link "https://github.com/benwaffle/vala-language-server") 33 :package-version `(lsp-mode . "8.0.0")) 34 35 (defcustom lsp-clients-vala-ls-executable "vala-language-server" 36 "Path to the `vala-language-server' binary." 37 :group 'lsp-vala 38 :risky t 39 :type 'file 40 :package-version `(lsp-mode . "8.0.0")) 41 42 (lsp-register-client 43 (make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-clients-vala-ls-executable)) 44 :major-modes '(vala-mode) 45 :priority -1 46 :server-id 'valals)) 47 48 (lsp-consistency-check lsp-vala) 49 50 (provide 'lsp-vala) 51 ;;; lsp-vala.el ends here