lsp-qml.el (1441B)
1 ;;; lsp-qml.el --- LSP Client for QML -*- lexical-binding: t; -*- 2 3 ;; Copyright (C) 2024 emacs-lsp maintainers 4 5 ;; Author: emacs-lsp maintainers 6 ;; Keywords: lsp, qt, qml, gui, 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 QML (Qt Modeling Language). 24 25 ;;; Code: 26 (require 'lsp-mode) 27 28 (defcustom lsp-qml-server-command "qmlls" 29 "Server executable to use." 30 :type 'string 31 :group 'lsp-qml 32 :package-version '(lsp-mode . "9.0.0")) 33 34 (lsp-register-client 35 (make-lsp-client :new-connection (lsp-stdio-connection 36 (lambda () 37 (executable-find lsp-qml-server-command))) 38 :activation-fn (lsp-activate-on "qml") 39 :priority -1 40 :server-id 'qml-ls)) 41 42 (provide 'lsp-qml) 43 ;;; lsp-qml.el ends here