config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

lsp-hy.el (1560B)


      1 ;;; lsp-rpm-spec.el --- lsp-mode integration for Hy -*- lexical-binding: t; -*-
      2 
      3 ;; Copyright (C) 2024 emacs-lsp maintainers
      4 
      5 ;; Author: emacs-lsp maintainers
      6 ;; Keywords: lsp, hy, hylang
      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 Hylang
     24 
     25 ;;; Code:
     26 
     27 (require 'lsp-mode)
     28 
     29 (defgroup lsp-hy nil
     30   "LSP support for Hy."
     31   :group 'lsp-mode
     32   :link '(url-link ""))
     33 
     34 (defcustom lsp-clients-hy-server-executable
     35   '("hyuga")
     36   "LSP support for the Hy Programming Language, using the hyuga."
     37   :group 'lsp-hy
     38   :risky t
     39   :type '(repeat string))
     40 
     41 (lsp-register-client
     42  (make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-clients-hy-server-executable))
     43                   :activation-fn (lsp-activate-on "hy")
     44                   :priority 0
     45                   :completion-in-comments? t
     46                   :major-modes '(hy-mode)
     47                   :server-id 'hyuga))
     48 
     49 (lsp-consistency-check lsp-hy)
     50 
     51 (provide 'lsp-hy)