Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions clients/lsp-uiua.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
;;; lsp-uiua.el --- lsp-mode Uiua integration -*- lexical-binding: t; -*-

;; Copyright (C) 2024 Tomas Fabrizio Orsi

;; Author: Tomas Fabrizio Orsi <[email protected]>
;; Keywords: lsp, uiua

;; 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 uiua using the built-in language server.

;;; Code:

(defgroup lsp-tex nil
"LSP support for the Uiua stack-based, array-oriented programming language."
:group 'lsp-mode
:link '(url-link "https://www.uiua.org/#language-server"))

(defcustom lsp-uiua-executable '("uiua" "lsp")
"Command to start the uiua language server."
:group 'lsp-uiua
:risky t
:type 'file)

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

(lsp-consistency-check lsp-uiua)

(provide 'lsp-uiua)
;;; lsp-uiua.el ends here
1 change: 1 addition & 0 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ Changes take effect only when a new session is started."
("\\.sql$" . "sql")
("\\.svelte$" . "svelte")
("\\.toml\\'" . "toml")
("\\.ua\\'" . "uiua")
("\\.ts$" . "typescript")
("\\.tsx$" . "typescriptreact")
("\\.ttcn3$" . "ttcn3")
Expand Down
Loading