Skip to content

Commit

Permalink
Add basic support for futhark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SKyletoft committed Sep 22, 2024
1 parent 710f2a2 commit 46ac7f2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions clients/lsp-futhark.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
;;; lsp-futhark.el --- lsp-mode futhark integration -*- lexical-binding: t; -*-

;; Copyright (C) 2024 lsp-mode maintainers

;; Keywords: languages

;; 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 <https://www.gnu.org/licenses/>.

;;; Commentary:

;; Client for the futhark language server.

;;; Code:

(require 'lsp-mode)

(add-to-list 'lsp-language-id-configuration '(futhark-mode . "futhark"))

(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("futhark" "lsp"))
:activation-fn (lsp-activate-on "futhark")
:server-id 'futhark))

(lsp-consistency-check lsp-futhark)

(provide 'lsp-futhark)
;;; lsp-futhark.el ends here
1 change: 1 addition & 0 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ Changes take effect only when a new session is started."
(reason-mode . "reason")
(caml-mode . "ocaml")
(tuareg-mode . "ocaml")
(futhark-mode . "futhark")
(swift-mode . "swift")
(elixir-mode . "elixir")
(elixir-ts-mode . "elixir")
Expand Down

0 comments on commit 46ac7f2

Please sign in to comment.