config

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

lsp-futhark.el (1397B)


      1 ;;; lsp-futhark.el --- lsp-mode futhark integration    -*- lexical-binding: t; -*-
      2 
      3 ;; Copyright (C) 2024 lsp-mode maintainers
      4 
      5 ;; Keywords: languages
      6 
      7 ;; This program is free software; you can redistribute it and/or modify
      8 ;; it under the terms of the GNU General Public License as published by
      9 ;; the Free Software Foundation, either version 3 of the License, or
     10 ;; (at your option) any later version.
     11 
     12 ;; This program is distributed in the hope that it will be useful,
     13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 ;; GNU General Public License for more details.
     16 
     17 ;; You should have received a copy of the GNU General Public License
     18 ;; along with this program.  If not, see <https://www.gnu.org/licenses/>.
     19 
     20 ;;; Commentary:
     21 
     22 ;; Client for the futhark language server.
     23 
     24 ;;; Code:
     25 
     26 (require 'lsp-mode)
     27 
     28 (defgroup lsp-futhark nil
     29   "LSP support for Futhark, using futhark lsp"
     30   :group 'lsp-mode
     31   :link '(url-link "https://github.com/diku-dk/futhark/tree/master/src/Futhark/LSP")
     32   :package-version `(lsp-mode . "9.0.1"))
     33 
     34 (lsp-register-client
     35  (make-lsp-client :new-connection (lsp-stdio-connection '("futhark" "lsp"))
     36                   :activation-fn (lsp-activate-on "futhark")
     37                   :server-id 'futhark))
     38 
     39 (lsp-consistency-check lsp-futhark)
     40 
     41 (provide 'lsp-futhark)
     42 ;;; lsp-futhark.el ends here