dotfiles/setup/commands/install-lsps-paru.rkt
2023-06-02 17:04:19 +02:00

31 lines
803 B
Racket

#lang racket
(require "../common.rkt")
(provide run)
(define (run)
(define lsp-packages
(list "elixir-ls-git"
"eslint"
"jdtls"
"lua-language-server"
"shellcheck"
"shfmt"
"taplo-cli"
"tidy"
"vscode-langservers-extracted"
"yaml-language-server"
"zls-git"))
(apply cmd "paru" "-S" "--needed" "--noconfirm" lsp-packages)
;; install OCaml LSP
(when (find-executable-path "opam")
(cmd "opam" "install" "--yes" "ocaml-lsp-server" "ocamlformat"))
;; Install CommonLisp LSP
;; Also useful for CommonLisp:
;; - `ros install koji-kojiro/cl-repl`
;; - `ros install fukamachi/mondo`
(when (find-executable-path "ros")
(cmd "ros" "install" "lem-project/lem" "cxxxr/cl-lsp"))
null)