Under UNIX and MacOS X, Asymptote supports features of the
Language
Server Protocol (LSP), including function signature and variable matching.
Under MSWindows, Asymptote currently supports
LSP only when compiled within the Windows Subsystem for Linux.
Emacs users can enable the Asymptote
language server protocol by installing lsp-mode using the
following procedure:
.emacs initialization file:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
M-x package-refresh-contents M-x package-install
and select lsp-mode.
.emacs initialization file:
(require 'lsp-mode)
(add-to-list 'lsp-language-id-configuration '(asy-mode . "asymptote"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("asy" "-lsp"))
:activation-fn (lsp-activate-on "asymptote")
:major-modes '(asy-mode)
:server-id 'asyls
)
)
M-x lsp