Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the uiua programming language. First draft. #4566

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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